[Overview][Constants][Types][Procedures and functions][Variables] | Reference for unit 'oldlinux' (#rtl) |
Convert epoch time to local time
Source position: oldlinux.pp line 1318
procedure EpochToLocal( |
epoch: LongInt; |
var year: Word; |
var month: Word; |
var day: Word; |
var hour: Word; |
var minute: Word; |
var second: Word |
); |
Converts the epoch time (=Number of seconds since 00:00:00 , January 1, 1970, corrected for your time zone ) to local date and time.
This function takes into account the timzeone settings of your system.
None
|
Return the current unix time |
|
|
Convert local time to epoch (unix) time |
|
|
Return current system time |
|
|
Return the system date |
Program Example3; { Program to demonstrate the EpochToLocal function. } Uses oldlinux; Var Year,month,day,hour,minute,seconds : Word; begin EpochToLocal (GetEpochTime,Year,month,day,hour,minute,seconds); Writeln ('Current date : ',Day:2,'/',Month:2,'/',Year:4); Writeln ('Current time : ',Hour:2,':',minute:2,':',seconds:2); end.
No notes exist for this page yet.