Created
April 20, 2022 21:38
-
-
Save josefaidt/a9eb2951fa49dcf3dcb84c1654774405 to your computer and use it in GitHub Desktop.
gets date from epoch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const getDateFromEpoch = epoch => { | |
let date = new Date(0) | |
date.setUTCSeconds(epoch) | |
return date | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment