-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
174 additions
and
338 deletions.
There are no files selected for viewing
96 changes: 48 additions & 48 deletions
96
docs/03.reference/01.functions/datetimeformat/_arguments/mask.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,53 @@ | ||
Date time formatting mask (case sensitive): | ||
|
||
- a,..,aaaa: AM/PM marker (see also "t" and "tt"; Example:AM) | ||
- d: Day in month, no leading zero for single-digit days (Example:3) | ||
- dd: Day in month, leading zero for single-digit days (Example:03) | ||
- D: Day in year, no leading zero for single-digit days (Example:4) | ||
- DD: Day in year, leading zero for single-digit days (Example:04) | ||
- DDD: Day in year, 2 leading zero for single-digit days (Example:004) | ||
- E,EE,EEE: Day of week as a three-letter abbreviation (Example:Tue) | ||
- EEEE: Day of week as its full name (Example:Tuesday) | ||
- F: Day of week in month, no leading zero for single-digit days (Example:4) | ||
- FF: Day of week in month, leading zero for single-digit days (Example:04) | ||
- G,GG: Era designator (Example:AD) | ||
- h: Hour in am/pm (1-12), no leading zero for single-digit hours (Example:3) | ||
- hh: Hour in am/pm (1-12), leading zero for single-digit hours (Example:03) | ||
- H: Hour in day (0-23), no leading zero for single-digit hours (Example:14) | ||
- HH: Hour in day (00-23), leading zero for single-digit hours (Example:14) | ||
- k: Hour in day (1-24), no leading zero for single-digit hours (Example:15) | ||
- kk: Hour in day (1-24), leading zero for single-digit hours (Example:15) | ||
- K: Hour in am/pm (0-11), no leading zero for single-digit hours (Example:2) | ||
- KK: Hour in am/pm (0-11), leading zero for single-digit hours (Example:02) | ||
- l,L: milliseconds, with no leading zeros (Example:3) | ||
- ll,LL: milliseconds, leading zero for single-digit days (Example:03) | ||
- lll,LLL: milliseconds, 2 leading zero for single-digit days (Example:003) | ||
- m,M: Month as digits, no leading zero for single-digit months (Example:6) | ||
- mm,MM: Month as digits, leading zero for single-digit months (Example:06) | ||
- mmm,MMM: Month as a three-letter abbreviation (Example:Jun) | ||
- mmmm,MMMM: Month as its full name (Example:June) | ||
- n,N: minutes in hour, no leading zero for single-digit minutes (Example:3) | ||
- nn,NN: minutes in hour, leading zero for single-digit minutes (Example:03) | ||
- s,S: seconds in minute, no leading zero for single-digit seconds (Example:3) | ||
- ss,SS: seconds in minute, leading zero for single-digit seconds (Example:03) | ||
- t,T: one-character time marker string (Example:P) | ||
- tt,TT: multiple-character time marker string (Example:PM) | ||
- w: Week in year, no leading zero for single-digit hours (Example:27) | ||
- ww: Week in year, leading zero for single-digit hours (Example:27) | ||
- W: Week in month, no leading zero for single-digit hours (Example:2) | ||
- WW: Week in month, leading zero for single-digit hours (Example:02) | ||
- y,yy,yyy: Year as last two digits, leading zero for single-digit (Example:09) | ||
- yyyy: Year represented by four digits (Example:2009) | ||
- z,zz,zzz: General time zone as a 3 to 4 letter abbreviation (Example:PST) | ||
- zzzz: General time zone as its full name (Example:Pacific Standard Time) | ||
- Z,..,ZZZZ: RFC 822 time zone (Example:-0800) | ||
- `a,..,aaaa`: AM/PM marker (see also "t" and "tt"; Example:AM) | ||
- `d`: Day in month, no leading zero for single-digit days (Example:3) | ||
- `dd`: Day in month, leading zero for single-digit days (Example:03) | ||
- `D`: Day in year, no leading zero for single-digit days (Example:4) | ||
- `DD`: Day in year, leading zero for single-digit days (Example:04) | ||
- `DDD`: Day in year, 2 leading zero for single-digit days (Example:004) | ||
- `E,EE,EEE`: Day of week as a three-letter abbreviation (Example:Tue) | ||
- `EEEE`: Day of week as its full name (Example:Tuesday) | ||
- `F`: Day of week in month, no leading zero for single-digit days (Example:4) | ||
- `FF`: Day of week in month, leading zero for single-digit days (Example:04) | ||
- `G,GG`: Era designator (Example:AD) | ||
- `h`: Hour in am/pm (1-12), no leading zero for single-digit hours (Example:3) | ||
- `hh`: Hour in am/pm (1-12), leading zero for single-digit hours (Example:03) | ||
- `H`: Hour in day (0-23), no leading zero for single-digit hours (Example:14) | ||
- `HH`: Hour in day (00-23), leading zero for single-digit hours (Example:14) | ||
- `k`: Hour in day (1-24), no leading zero for single-digit hours (Example:15) | ||
- `kk`: Hour in day (1-24), leading zero for single-digit hours (Example:15) | ||
- `K`: Hour in am/pm (0-11), no leading zero for single-digit hours (Example:2) | ||
- `KK`: Hour in am/pm (0-11), leading zero for single-digit hours (Example:02) | ||
- `l,L`: milliseconds, with no leading zeros (Example:3) | ||
- `ll,LL`: milliseconds, leading zero for single-digit days (Example:03) | ||
- `lll,LLL`: milliseconds, 2 leading zero for single-digit days (Example:003) | ||
- `m,M`: Month as digits, no leading zero for single-digit months (Example:6) | ||
- `mm,MM`: Month as digits, leading zero for single-digit months (Example:06) | ||
- `mmm,MMM`: Month as a three-letter abbreviation (Example:Jun) | ||
- `mmmm,MMMM`: Month as its full name (Example:June) | ||
- `n,N`: minutes in hour, no leading zero for single-digit minutes (Example:3) | ||
- `nn,NN`: minutes in hour, leading zero for single-digit minutes (Example:03) | ||
- `s,S`: seconds in minute, no leading zero for single-digit seconds (Example:3) | ||
- `ss,SS`: seconds in minute, leading zero for single-digit seconds (Example:03) | ||
- `t,T`: one-character time marker string (Example:P) | ||
- `tt,TT`: multiple-character time marker string (Example:PM) | ||
- `w`: Week in year, no leading zero for single-digit hours (Example:27) | ||
- `ww`: Week in year, leading zero for single-digit hours (Example:27) | ||
- `W`: Week in month, no leading zero for single-digit hours (Example:2) | ||
- `WW`: Week in month, leading zero for single-digit hours (Example:02) | ||
- `y,yy,yyy`: Year as last two digits, leading zero for single-digit (Example:09) | ||
- `yyyy`: Year represented by four digits (Example:2009) | ||
- `z,zz,zzz`: General time zone as a 3 to 4 letter abbreviation (Example:PST) | ||
- `zzzz`: General time zone as its full name (Example:Pacific Standard Time) | ||
- `Z,..,ZZZZ`: RFC 822 time zone (Example:-0800) | ||
|
||
The following masks can be used to format the full date and time and may not be combined with other masks: | ||
|
||
- short: equivalent to "m/d/y h:nn tt" | ||
- medium: equivalent to "mmm d, yyyy h:nn:ss tt" | ||
- long: medium followed by three-letter time zone; i.e. "mmmm d, yyyy h:nn:ss tt zzz" | ||
- full: equivalent to "dddd, mmmm d, yyyy h:nn:ss tt zz" | ||
- ISO8601/ISO: equivalent to "yyyy-mm-dd'T'HH:nn:ssXXX" | ||
- epoch: Total seconds of a given date (Example:1567517664) (added in Lucee 6.0.0.83) | ||
- epochms: Total milliseconds of a given date (Example:1567517664000) (added in Lucee 6.0.0.83) | ||
- `short`: equivalent to "m/d/y h:nn tt" | ||
- `medium`: equivalent to "mmm d, yyyy h:nn:ss tt" | ||
- `long`: medium followed by three-letter time zone; i.e. "mmmm d, yyyy h:nn:ss tt zzz" | ||
- `full`: equivalent to "dddd, mmmm d, yyyy h:nn:ss tt zz" | ||
- `ISO8601/ISO`: equivalent to "yyyy-mm-dd'T'HH:nn:ssXXX" | ||
- `epoch`: Total seconds of a given date (Example:1567517664) (added in Lucee 6.0.0.83) | ||
- `epochms`: Total milliseconds of a given date (Example:1567517664000) (added in Lucee 6.0.0.83) |
95 changes: 49 additions & 46 deletions
95
docs/03.reference/01.functions/lsdatetimeformat/_arguments/mask.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,55 @@ | ||
Mask that has to be used for formatting. | ||
Date time formatting mask (case sensitive): | ||
|
||
- a,..,aaaa: AM/PM marker (see also "t" and "tt"; Example:AM) | ||
- d: Day in month, no leading zero for single-digit days (Example:3) | ||
- dd: Day in month, leading zero for single-digit days (Example:03) | ||
- D: Day in year, no leading zero for single-digit days (Example:4) | ||
- DD: Day in year, leading zero for single-digit days (Example:04) | ||
- DDD: Day in year, 2 leading zero for single-digit days (Example:004) | ||
- E,EE,EEE: Day of week as a three-letter abbreviation (Example:Tue) | ||
- EEEE: Day of week as its full name (Example:Tuesday) | ||
- F: Day of week in month, no leading zero for single-digit days (Example:4) | ||
- FF: Day of week in month, leading zero for single-digit days (Example:04) | ||
- G,GG: Era designator (Example:AD) | ||
- h: Hour in am/pm (1-12), no leading zero for single-digit hours (Example:3) | ||
- hh: Hour in am/pm (1-12), leading zero for single-digit hours (Example:03) | ||
- H: Hour in day (0-23), no leading zero for single-digit hours (Example:14) | ||
- HH: Hour in day (00-23), leading zero for single-digit hours (Example:14) | ||
- k: Hour in day (1-24), no leading zero for single-digit hours (Example:15) | ||
- kk: Hour in day (1-24), leading zero for single-digit hours (Example:15) | ||
- K: Hour in am/pm (0-11), no leading zero for single-digit hours (Example:2) | ||
- KK: Hour in am/pm (0-11), leading zero for single-digit hours (Example:02) | ||
- l,L: milliseconds, with no leading zeros (Example:3) | ||
- ll,LL: milliseconds, leading zero for single-digit days (Example:03) | ||
- lll,LLL: milliseconds, 2 leading zero for single-digit days (Example:003) | ||
- m,M: Month as digits, no leading zero for single-digit months (Example:6) | ||
- mm,MM: Month as digits, leading zero for single-digit months (Example:06) | ||
- mmm,MMM: Month as a three-letter abbreviation (Example:Jun) | ||
- mmmm,MMMM: Month as its full name (Example:June) | ||
- n,N: minutes in hour, no leading zero for single-digit minutes (Example:3) | ||
- nn,NN: minutes in hour, leading zero for single-digit minutes (Example:03) | ||
- s,S: seconds in minute, no leading zero for single-digit seconds (Example:3) | ||
- ss,SS: seconds in minute, leading zero for single-digit seconds (Example:03) | ||
- t,T: one-character time marker string (Example:P) | ||
- tt,TT: multiple-character time marker string (Example:PM) | ||
- w: Week in year, no leading zero for single-digit hours (Example:27) | ||
- ww: Week in year, leading zero for single-digit hours (Example:27) | ||
- W: Week in month, no leading zero for single-digit hours (Example:2) | ||
- WW: Week in month, leading zero for single-digit hours (Example:02) | ||
- y,yy,yyy: Year as last two digits, leading zero for single-digit (Example:09) | ||
- yyyy: Year represented by four digits (Example:2009) | ||
- z,zz,zzz: General time zone as a 3 to 4 letter abbreviation (Example:PST) | ||
- zzzz: General time zone as its full name (Example:Pacific Standard Time) | ||
- Z,..,ZZZZ: RFC 822 time zone (Example:-0800) | ||
- `a,..,aaaa`: AM/PM marker (see also "t" and "tt"; Example:AM) | ||
- `d`: Day in month, no leading zero for single-digit days (Example:3) | ||
- `dd`: Day in month, leading zero for single-digit days (Example:03) | ||
- `D`: Day in year, no leading zero for single-digit days (Example:4) | ||
- `DD`: Day in year, leading zero for single-digit days (Example:04) | ||
- `DDD`: Day in year, 2 leading zero for single-digit days (Example:004) | ||
- `E,EE,EEE`: Day of week as a three-letter abbreviation (Example:Tue) | ||
- `EEEE`: Day of week as its full name (Example:Tuesday) | ||
- `F`: Day of week in month, no leading zero for single-digit days (Example:4) | ||
- `FF`: Day of week in month, leading zero for single-digit days (Example:04) | ||
- `G,GG`: Era designator (Example:AD) | ||
- `h`: Hour in am/pm (1-12), no leading zero for single-digit hours (Example:3) | ||
- `hh`: Hour in am/pm (1-12), leading zero for single-digit hours (Example:03) | ||
- `H`: Hour in day (0-23), no leading zero for single-digit hours (Example:14) | ||
- `HH`: Hour in day (00-23), leading zero for single-digit hours (Example:14) | ||
- `k`: Hour in day (1-24), no leading zero for single-digit hours (Example:15) | ||
- `kk`: Hour in day (1-24), leading zero for single-digit hours (Example:15) | ||
- `K`: Hour in am/pm (0-11), no leading zero for single-digit hours (Example:2) | ||
- `KK`: Hour in am/pm (0-11), leading zero for single-digit hours (Example:02) | ||
- `l,L`: milliseconds, with no leading zeros (Example:3) | ||
- `ll,LL`: milliseconds, leading zero for single-digit days (Example:03) | ||
- `lll,LLL`: milliseconds, 2 leading zero for single-digit days (Example:003) | ||
- `m,M`: Month as digits, no leading zero for single-digit months (Example:6) | ||
- `mm,MM`: Month as digits, leading zero for single-digit months (Example:06) | ||
- `mmm,MMM`: Month as a three-letter abbreviation (Example:Jun) | ||
- `mmmm,MMMM`: Month as its full name (Example:June) | ||
- `n,N`: minutes in hour, no leading zero for single-digit minutes (Example:3) | ||
- `nn,NN`: minutes in hour, leading zero for single-digit minutes (Example:03) | ||
- `s,S`: seconds in minute, no leading zero for single-digit seconds (Example:3) | ||
- `ss,SS`: seconds in minute, leading zero for single-digit seconds (Example:03) | ||
- `t,T`: one-character time marker string (Example:P) | ||
- `tt,TT`: multiple-character time marker string (Example:PM) | ||
- `w`: Week in year, no leading zero for single-digit hours (Example:27) | ||
- `ww`: Week in year, leading zero for single-digit hours (Example:27) | ||
- `W`: Week in month, no leading zero for single-digit hours (Example:2) | ||
- `WW`: Week in month, leading zero for single-digit hours (Example:02) | ||
- `y,yy,yyy`: Year as last two digits, leading zero for single-digit (Example:09) | ||
- `yyyy`: Year represented by four digits (Example:2009) | ||
- `z,zz,zzz`: General time zone as a 3 to 4 letter abbreviation (Example:PST) | ||
- `zzzz`: General time zone as its full name (Example:Pacific Standard Time) | ||
- `Z,..,ZZZZ`: RFC 822 time zone (Example:-0800) | ||
|
||
The following masks can be used to format the full date and time and may not be combined with other masks: | ||
|
||
- short: equivalent to "m/d/y h:nn tt" | ||
- medium: equivalent to "mmm d, yyyy h:nn:ss tt" | ||
- long: medium followed by three-letter time zone; i.e. "mmmm d, yyyy h:nn:ss tt zzz" | ||
- full: equivalent to "dddd, mmmm d, yyyy h:nn:ss tt zz" | ||
- ISO8601/ISO: equivalent to "yyyy-mm-dd'T'HH:nn:ssXXX" | ||
- `short`: equivalent to "m/d/y h:nn tt" | ||
- `medium`: equivalent to "mmm d, yyyy h:nn:ss tt" | ||
- `long`: medium followed by three-letter time zone; i.e. "mmmm d, yyyy h:nn:ss tt zzz" | ||
- `full`: equivalent to "dddd, mmmm d, yyyy h:nn:ss tt zz" | ||
- `ISO8601/ISO`: equivalent to "yyyy-mm-dd'T'HH:nn:ssXXX" | ||
- `ISOMillis/ISOMs/javascript`: Javascript style ISO date, equivalent to "yyyy-mm-dd'T'HH:nn:ss.SSSXXX" | ||
- `epoch`: Total seconds of a given date (Example:1567517664) | ||
- `epochms`: Total millseconds of a given date (Example:1567517664000) |
Oops, something went wrong.