# unit time

### Time unit

author: Tomasz Biela (Tebe)

https://github.com/graemeg/freepascal/blob/master/packages/fv/src/time.pas

## Interface:

name: | description:
--- | ---
CurrentMinuteOfDay | #### FUNCTION CurrentMinuteOfDay: Word; Returns the number of minutes since midnight of a current system time. ##### returns: word (Range: 0 - 1439)
CurrentSecondOfDay | #### FUNCTION CurrentSecondOfDay: cardinal; Returns the number of seconds since midnight of current system time. ##### returns: cardinal (Range: 0 - 86399)
CurrentSec100OfDay | #### FUNCTION CurrentSec100OfDay: Cardinal; Returns the 1/100ths of a second since midnight of current system time. ##### returns: cardinal (Range: 0 - 8639999)
MinuteOfDay | #### FUNCTION MinuteOfDay (Hour24, Minute: Word): Word; Returns the number of minutes since midnight of a valid given time. ##### returns: word (Range: 0 - 1439)
SecondOfDay | #### FUNCTION SecondOfDay (Hour24, Minute, Second: Word): cardinal; Returns the number of seconds since midnight of a valid given time. ##### returns: cardinal (Range: 0 - 86399)
MinutesToTime | #### PROCEDURE MinutesToTime (Md: cardinal; Var Hour24, Minute: Word); Returns the time in hours and minutes of a given number of minutes. ##### parameters: Md - minutes Hour24 - hour variable Minute - minute variable
SecondsToTime | #### PROCEDURE SecondsToTime (Sd: cardinal; Var Hour24, Minute, Second: Word); Returns the time in hours, mins and secs of a given number of seconds. ##### parameters: Sd - seconds Hour24 - hour variable Minute - minute variable Second - second variabler