-
-
Notifications
You must be signed in to change notification settings - Fork 251
Replace date-fns by date-and-time-formatter
#443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
date-fns by date-and-time-formatter
7fd13e6 to
28f51ae
Compare
| 'timestamp-format': { | ||
| alias: 't', | ||
| describe: 'Specify the timestamp in moment/date-fns format.', | ||
| describe: 'Specify the timestamp in Unicode LDML format.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While this is technically correct, I wonder how many people won't know how to find usage examples for LDML.
For instance, for me, Google returns one result for "unicode ldml" in the first page that is more "straight to the point" IMO:
https://stackoverflow.com/q/39904392/2083599
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point! Should we explicitly link https://unicode.org/reports/tr35/tr35-dates.html#Date_Format_Patterns in this description?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably, but i'm worried it might not be formatted well by yargs.
Something like #445 (or better) is looking promising now...
| /** | ||
| * Date format used when logging date/time. | ||
| * @see https://date-fns.org/v2.0.1/docs/format | ||
| * @see https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| * @see https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table | |
| * @see https://unicode.org/reports/tr35/tr35-dates.html#Date_Format_Patterns |
| /** | ||
| * Date format used when logging date/time. | ||
| * @see https://date-fns.org/v2.0.1/docs/format | ||
| * @see https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| * @see https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table | |
| * @see https://unicode.org/reports/tr35/tr35-dates.html#Date_Format_Patterns |
| - `restartTries`: how many attempts to restart a process that dies will be made. Default: `0`. | ||
| - `restartDelay`: how many milliseconds to wait between process restarts. Default: `0`. | ||
| - `timestampFormat`: a [date-fns format](https://date-fns.org/v2.0.1/docs/format) | ||
| - `timestampFormat`: a [Unicode LDML format](https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| - `timestampFormat`: a [Unicode LDML format](https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table) | |
| - `timestampFormat`: a [Unicode LDML date format](https://unicode.org/reports/tr35/tr35-dates.html#Date_Format_Patterns) |
|
It would be helpful to either upgrade to Thanks everyone!! |
|
Hey! This is now fixed in v9.0.0. |
Fixes #436
Backwards-compatible because
date-fnsfollows Unicode LDML too (well, more or less https://blog.date-fns.org/v2-unicode-tokens/)