-
Notifications
You must be signed in to change notification settings - Fork 733
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
Feature request - function to quickly create ISO8601 stamp without milliseconds #651
Comments
I'd accept a PR for this |
Cool. What do you think of creating a dedicated function |
I like the option better. If it's confusing, perhaps |
The following PR solves this by adding a new parameter #1412 |
@EzeGmnz Is this not accepted, or am I missing a docs that mentions it? |
@TheArKaID its in there. Perhaps not documented - is an option for |
Thanks for mentioning it. But, it can only be suppressed if it is zero, isn't? |
I can’t remember for sure, but you can certainly round down or up
|
@TheArKaID this is how I use it:
|
Closing this, as ti has been implemented as shown above. It's also in the JSDoc for the relevant methods. @TheArKaID Correct, Luxon will not hide information. If you want to output a timestamp without milliseconds, you have to have a timestamp without milliseconds. |
It's weird, but this flag doesn't work for me without |
@FabianoLothor been a while but sounds right as this comment does so. I used |
Unless I am missing something this is how one gets the DateTime without milliseconds:
Which is rather verbose. So many systems use the ISO8601 format without milliseconds (ex: 2020-01-21T23:03:23Z) that it would be nice to have a faster way to crank these out? maybe a
trimMilliseconds
option or something.And thanks for the lib - I've tried them all and love this one by far the most.
The text was updated successfully, but these errors were encountered: