Skip to content

JavaScript module for converting mORMot2 TTimeLog values to/from JS Date objects and ISO strings.

License

Notifications You must be signed in to change notification settings

flydev-fr/mormot2-timelog

Repository files navigation

mormot2-timelog

Latest Tag Build Status NPM Downloads

JavaScript module for converting mORMot2 TTimeLog values to/from JS Date objects and ISO strings.

Installation

npm install mormot2-timelog

Usage

import { dateTimeToTimeLog, timeLogToDateTime, timeLogToISOString } from 'mormot2-timelog';

const now = new Date();
const timeLog = dateTimeToTimeLog(now);
console.log('TTimeLog:', timeLog);

const date = timeLogToDateTime(timeLog);
console.log('Date:', date.toISOString());

const isoString = timeLogToISOString(timeLog);
console.log('ISO String:', isoString);

About

JavaScript module for converting mORMot2 TTimeLog values to/from JS Date objects and ISO strings.

Topics

Resources

License

Stars

Watchers

Forks