char* TimeStr (const Time& t, char *str, const char *format=0)

Convert the specified time to a date string.

Documentation

The Time argument is converted to a UTC date and time string and stored in 'str'. The optional format string describes how the string is to be converted. The format characters cause the appropriate date information to be inserted. If no format is specified, "%s:%n" is assumed. The following table lists the format codes and their meaning:
Format Meaning Format Meaning Format Meaning
%d Day of month %D Day of year %H Hour of day
%m Month number %M Month name %n Nanoseconds
%N Minute in hour %S seconds %s GPS seconds
%w Week day %y Year in century %Y Year
%Z Time zone
Returns:
Returns the output string pointer or Null upon failure.
Parameters:
t - Time to be converted
str - Character array into which the string will be stored.
format - Format string.

alphabetic index hierarchy of classes


generated by doc++