Standard system time functions.
This module contains standard time functions, to get system time, convert to local time or UTC, and format for printing.
Converts a provided Unix Timestamp into a Time struct with UTC time. UTC Time is the time at GMT timezone, Coordinated Universal Time.
timep | is the Unix Timestamp to convert |
Converts a provided Unix Timestamp into a Time struct with local time.
timep | is the Unix Timestamp to convert |
Prints the time provided with conditional formatting into a provided string. Example: format="Todays Date is %A %B %d, %Y." Results in "Todays Date is Thursday October 31, 2013.".
s | provides a preallocated string for storing the date result. |
max | is the size of the preallocated string. |
format | is a string containing output date text formatting. |
tm | contains a Time struct to be formatted for the output string. |
Returns the current time in Unix Timestamp Format.
tloc | if provided receives current time (NULL recommended) |
Returns the current time in Unix Timestamp Format with Milliseconds.
tloc | if provided receives current Unix Time seconds portion |
out_ms | if provided receives current Unix Time milliseconds portion |
struct tm |
Time struct, with values separated into incremental: year, month, day_in_month, hour, minute, second and informational: Day in week, Day in Year, is it daylight savings time.
typedef int32_t time_t |
Seconds since January 1st, 1970 UTC (Unix Timestamp)