Closed tigrankhachikyan closed 4 years ago
Is there a way to read from timestamp (unix epoch) i.e. 1600454930.97649 and format to say 'ymd'? The Luxon itself seems has method fromMillis https://moment.github.io/luxon/docs/class/src/datetime.js~DateTime.html#static-method-fromMillis
1600454930.97649
fromMillis
I'm trying to do something like
// datetimeVariable = '1600454930.97649' // i.e. Fri, 18 Sep 2020 20:06:49 GMT {{ datetimeVariable | luxon:full }}
Am I doing something wrong, or this is not supported?
Thanks!
In version 0.7.4 i've added seconds (or unix) and millis to format/parse Unix timestamps.
seconds
unix
millis
Is there a way to read from timestamp (unix epoch) i.e.
1600454930.97649
and format to say 'ymd'? The Luxon itself seems has methodfromMillis
https://moment.github.io/luxon/docs/class/src/datetime.js~DateTime.html#static-method-fromMillisI'm trying to do something like
Am I doing something wrong, or this is not supported?
Thanks!