xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

TimeToSec()

Calculates the number of seconds since midnight.

Syntax

TimeToSec( [<cTime>] ) --> nSeconds

Arguments

<cTime>
This is a character string formatted as HH:MM:SS or HH:MM:SS:ss. It holds a time string based on a 24h clock.

Return

The function returns a numeric value representing the number of seconds corresponding to <cTime>. If no parameter is passed, the return value is determined by Seconds().

Info

See also:Seconds(), SecToTime(), Time()
Category: CT:DateTime , Date and time
Source:ct\cttime.prg
LIB:xhb.lib
DLL:xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe