EBSILON®Professional Online Documentation
In This Topic
    Time Format
    In This Topic

    Time Format Specifications


    Format codes to output date and time

     

    Format Code

    Description

    %a

    Abbreviated name of the week day

    %A

    Full name of the week day

    %b

    Abbreviated name of the month

    %B

    Full name of the month

    %c

    Date and time display as per the local area

    %d

    Day of the month as decimal number (01 – 31)

    %H

    Hours in the 24-hour format (00 – 23)

    %I

    Hours in the 12-hour format (01 – 12)

    %j

    Day of the year as decimal number (001 – 366)

    %m

    Month as decimal number (01 – 12)

    %M

    Minute as decimal number (00 – 59)

    %p

    Current locality, A.M./P.M. indicator for 12-hour clock

    %S

    Second as decimal number (00 – 59)

    %U

    Week of the year as decimal number, with Sunday as the first day of the week (00 – 53)

    %w

    Week day as decimal number (0 – 6; Sunday is 0)

    %W

    Week of the year as decimal number, with Monday as the first day of the week (00 – 53)

    %x

    Date display for the current locality

    %X

    Time display for the current locality

    %y

    Year without the century, as decimal number (00 – 99)

    %Y

    Year with century, as decimal number

    %z, %Z

    Name or abbreviation of the time zone; no characters, if the time zone is unknown

    %%

    Percentage sign

     

    Regional and Language Options

    Some time format functions have an additional argument to format Regional and Language Options.

    Example:

    print (reConvertTime (10230, "%B"));                                                 Output = "January"

    print (reConvertTime (10230, "%B", "German_Austria"));               Output = "Jänner"