Date FORMAT_SHORT/MEDIUM/LONG

The docs say...

FORMAT_SHORT = 0
Short formatting is a numerical representation of date/time.
Since:
1.0.0
FORMAT_MEDIUM = 1
Medium formatting is a mix of Numbers and Strings depending on what function is being called. If a String is used, it results in an abbreviated form of the time or date.
Since:
1.0.0
FORMAT_LONG = 2
Long formatting is a mix of Numbers and Strings depending on what function is being called. If a String is used, it results in the spelled out form of the time or date.
Since:
1.0.0

But where is it listed what the ACTUAL formatting is? for example I was hoping to use this for 'November'

var month_long = Calendar.info(now, Time.FORMAT_LONG).month;

But it returns

'Nov'
  • But "Thurs" does fit the definition of "FORMAT_MEDIUM"

    It does fit the documentation from Gregorian.info() and for the enumerator FORMAT_MEDIUM, but not for Info.day_of_week.

    The documentation for day_of_week and month both indicate that the result will be exactly 3 characters in length.

    Travis
  • It does fit the documentation from Gregorian.info() and for the enumerator FORMAT_MEDIUM, but not for Info.day_of_week.

    The documentation for day_of_week and month both indicate that the result will be exactly 3 characters in length.

    Travis


    I wonder if this is just a documentation error. I wonder if the names come from the FW, or are within CIQ, as different languages would need to be handled.
  • I found that for czech lang. there are 11 months abbreviated to 3 chars and one month to 5. It's October (Rijen in Czech) btw.