Repository
Current version released
3 years ago
Ptera
Ptera is DateTime library for Deno.
Fully Written in Deno.
Heavily inspired by the great libraries Luxon, Day.js, Moment.js.
Features
- Immutable, chainable
- Parsing and Formatting
- Timezone and Intl support
Getting Started
API
import { datetime } from "https://deno.land/x/ptera/mod.ts";
datetime("2021-06-30T21:15:30.200");
// timezone
datetime().toZonedTime("Asia/Tokyo");
// locale
datetime().setLocale("fr");
// add, subtract
datetime().add({ year: 1 });
datetime().subtract({ day: 1 });