Created
December 1, 2023 07:38
-
-
Save transcendr/646300e40b06817cbb8fae9f032fe80b to your computer and use it in GitHub Desktop.
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
static getFormattedTime(date: Date): string { | |
return ( | |
date.getUTCHours().toString().padStart(2, '0') + | |
':' + | |
date.getUTCMinutes().toString().padStart(2, '0') | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment