Skip to content

Generate a ISO8601 string with local timezone, like "2021-02-09T12:20:04+08:00".

License

Notifications You must be signed in to change notification settings

skanfd/deno-local8601

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

deno-local8601

Generate a ISO8601 string with local timezone, like "2021-02-09T12:20:04+08:00".

function local8601(date?: Date): string

import { local8601 } from "./mod.ts";

console.log(local8601());

console.log(local8601(new Date()));
2021-02-09T12:20:04+08:00
2021-02-09T12:20:04+08:00

About

Generate a ISO8601 string with local timezone, like "2021-02-09T12:20:04+08:00".

Resources

License

Stars

Watchers

Forks

Packages

No packages published