Credits | Overview | Plotting Styles | Commands | Terminals
--- | --- | --- | --- | ---

## tm_structure

Gnuplot stores time internally as a 64-bit floating point value representing seconds since the epoch date 1 Jan 1970. In order to interpret this as a time or date it is converted to or from a POSIX standard structure struct_tm. Note that fractional seconds, if any, cannot be retrieved via tm_sec(). The components may be accessed individually using the functions

- tm_hour(t) integer hour in the range 0--23
- tm_mday(t) integer day of month in the range 1--31
- tm_min(t) integer minute in the range 0--59
- tm_mon(t) integer month of year in the range 0--11
- tm_sec(t) integer second in the range 0--59
- tm_wday(t) integer day of the week in the range 0 (Sunday)--6(Saturday)
- tm_yday(t) integer day of the year the range 0--365
- tm_year(t) integer year