Ptera

ci License: MIT

ptera-log

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, substract
datetime().add({ year: 1 });
datetime().substract({ day: 1 });

Documentation

https://tak-iwamoto.github.io/ptera/