Name
hw_GetDate -- get current date and time (V5.0)
Synopsis
void hw_GetDate(STRPTR buf);
Function
This function copies the current date and time to the specified memory buffer. The string will be formatted as follows: dd-mmm-yyyy hh:mm:ss. All constituents are numbers except the month which is specified as a three letter code containing the first three letters of the English month name, e.g. "Jan".

If you want to query the current date in an abstracted format, please use the hw_GetDateStamp() function instead. See hw_GetDateStamp for details.

Designer compatibility
Supported since Designer 4.0

Inputs
buf
buffer large enough to hold the date and time string

Show TOC