Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 941 Bytes

README.md

File metadata and controls

30 lines (18 loc) · 941 Bytes

Date utilities

JSR @frytg/dates ci

This is a simple opinionated wrapper around the Luxon library to provide pre-configured helpers.

For example, to get the current date in ISO format:

import { getISO } from '@frytg/dates';

getISO(); // returns string like 2025-01-01T00:00:00.000Z

You can also use the full DateTime object from Luxon:

import { DateTime } from '@frytg/dates';

const date = DateTime.fromMillis(1719859200000);

Author

Created by @frytg / frytg.digital

License

Unlicense - also see unlicense.org