Get Date/Time String

Converts a time-zone-independent number assumed to be the number of seconds that have elapsed since 12:00 a.m., Friday, January 1, 1904, Universal Time, to a date and time string in the configured time zone for your computer.

date format selects the appearance of the date string. The following date formats are available for systems configured to use the standard, U.S. date format. These formats vary with your system configuration. The standard U.S. format is shown.

0Short—1/21/94
1Long—Friday, January 21, 1994
2Abbreviated—Fri, Jan 21, 1994
seconds is a time zone-independent number of seconds that have elapsed since 12:00 a.m., Friday, January 1, 1904, Universal Time. The default is the current date and time.
want seconds? controls the display of seconds in the time string.
date string
time string