Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

As the comment mentions there, the idea is that you can do those sorts of transformations on the duration and then emit them:

    >> d = Temporal.Duration.from({milliseconds: 60000})
    >> d.seconds
    0
    >> d.milliseconds
    60000
    >> d = d.round({largestUnit: 'second'})
    >> d.seconds
    60
    >> d.milliseconds
    0


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: