Time Format

Plot stores time data as the number of seconds relative to an absolute reference time: the first instant of 1 January, 2001, Greenwich Mean Time (GMT). Dates before then are stored as negative numbers; dates after then are stored as positive numbers.

To convert a UNIX time to a Plot time simply subtract 978307200.0 from the UNIX time.

Time format tokes

%aAbbreviated weekday name
%AFull weekday name
%bAbbreviated month name
%BFull month name
%cShorthand for x", the locale format for date and time
%dDay of the month as a decimal number (01-31)
%eSame as %d but does not print the leading 0 for days 1 through 9 (unlike strftime(), does not print a leading space)
%FMilliseconds as a decimal number (000-999)
%HHour based on a 24-hour clock as a decimal number (00-23)
%IHour based on a 12-hour clock as a decimal number (01-12)
%jDay of the year as a decimal number (001-366)
%mMonth as a decimal number (01-12)
%MMinute as a decimal number (00-59)
%pAM/PM designation for the locale
%SSecond as a decimal number (00-59)
%wWeekday as a decimal number (0-6), where Sunday is 0
%xDate using the date representation for the locale, including the time zone (produces different results from strftime())
%XTime using the time representation for the locale (produces different results from strftime())
%yYear without century (00-99)
%YYear with century (such as 1990)
%ZTime zone name (such as Pacific Daylight Time; produces different results from strftime())
%zTime zone offset in hours and minutes from GMT (HHMM)