I want to perform a transformation using luxon from milliseconds to minutes.
For eg. if i enter 1000 , te output should be 1m 0s.
I am trying Duration.fromMillis(1000).as('minutes') but in return i am getting 0 output. Is there any other way i can achieve the same thing
Duration.fromMillis(150000).toFormat("mm'm' ss's'")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With