1.0.1 • Published 8 months ago

tempus-ts v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

Tempus-TS

Tempus-TS is a modern JavaScript/TypeScript date library built on date-fns and date-fns-tz. It offers powerful date manipulation and formatting capabilities, with support for timezones, business days, relative time strings, and more.

Features

  • Date manipulation (add, subtract, comparison)
  • Timezone support with date-fns-tz
  • Business day calculations
  • Human-readable relative time strings
  • Moon phase, Zodiac sign, and seasons
  • Chainable API for easy date transformations
  • Extensive formatting options
  • Leap year and ISO week number handling

Installation

Install Tempus-TS using npm or yarn:

npm install tempus-ts
yarn add tempus-ts

Usage

For detailed examples on how to use Tempus-TS, please refer to the examples folder in the repository. It includes:

  • Basic usage
  • Formatting dates
  • Timezone handling
  • Business day calculations
  • Chainable operations
  • Date comparisons
  • Working with ordinals and relative time strings
1.0.1

8 months ago

1.0.0

8 months ago