Last active
February 11, 2025 10:32
-
-
Save jihchi/1c673092c80e9d3e7c4c365b20c2b29a 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
import { TZDate } from 'npm:@date-fns/tz'; | |
import { UTCDate } from "npm:@date-fns/utc"; | |
import * as DF from 'npm:date-fns'; | |
console.log('Use `TZDate` or `UTCDate` for date construction. All `date-fn` utilities are available in `DF` (e.g. `DF.format()`)'); | |
console.log('TZCDate: https://github.com/date-fns/tz'); | |
console.log('UTCDate: https://github.com/date-fns/utc'); | |
console.log('`date-fn` utilities: https://date-fns.org/docs/Getting-Started'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Getting Started
deno repl --eval-file="https://gist.githubusercontent.com/jihchi/1c673092c80e9d3e7c4c365b20c2b29a/raw/datefns.ts"