MIAMEX 132: Format file time

Updated September 2011; see History

xcall MIAMEX, MX_FTFORMAT, ftime, strtime {,sdate, stime}

MX_FTFORMAT is used to format a numeric filetime of the type returned by MX_FILESTATS into a more friendly format.

ftime  (Num)  [in]

File time in the format returned by MX_FILESTATS (seconds since 1970)

strtime  (String, 24+)  [out]

Formatted time, e.g. "Sun Jul 31 16:02:41 2011"

sdate  (B,4)  [in/out]

If specified, returns the date corresponding to ftime. Can be passed to ODTIM for formatting.

stime  (Num)  [in/out]

If specified, returns the number of seconds since midnight. Can be passed to ODTIM for formatting.

History

2011 September, A-Shell 5.1.1235:  Add optional parameters sdate and stime to return the file time in the standard system date and time formats used by ODTIM.