
51
The format codes can be used to generate a string with date and time. Any other characters will appear in the string without change.
The format codes always have leading zeros as necessary to ensure a constant field width. An optional # modifier before the format
code letter removes the leading zeros from the following format codes: %#d, %#H, %#I, %#j, %#m, %#M, %#S, %#y, %#Y.
The # modifier does not modify the behaviour of any other format codes.
17. Date and Time Format Codes
UVIATOR software manual
Format Code Value
%% a single percent character
%d day of month (01 - 31)
%h fractional hour (0.000000 – 23.999722), only available for formatting in output files
%H hour (24-hour clock) (00 - 23)
%I hour (12-hour clock) (01 - 12)
%j day number of year (001 - 366)
%m month number (01 - 12)
%M minute (00 - 59)
%p AM or PM flag
%S seconds (00 - 59)
%y year within century (00 - 99)
%Y year, including the century (for example, 1997)
Kommentare zu diesen Handbüchern