Created
April 26, 2018 16:54
-
-
Save selbekk/446d2388b64515da1ba982b5a4b2612a to your computer and use it in GitHub Desktop.
Time sensitive timeproxy examples with tagged template literals
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
import tp from 'timeproxy'; | |
const SESSION_EXPIRES = tp`in 30 seconds`; | |
const OLD_POST_TIMESTAMP = tp`two weeks ago` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment