local-iso-timestamp
v1.0.2
Published
A simple utility to get the current local date and time in ISO format with timezone offset.
Downloads
50
Readme
local-iso-timestamp
A simple utility to get the current local date and time in ISO format with timezone offset.
Installation
npm install local-iso-timestamp
Usage
JavaScript
const { getLocalIsoTimestamp } = require('local-iso-timestamp');
console.log(getLocalIsoTimestamp());
// Output: 2024-10-12T22:15:16.521+13:00
TypeScript
import { getLocalIsoTimestamp } from 'local-iso-timestamp';
console.log(getLocalIsoTimestamp());
// Output: 2024-10-12T22:15:16.521+13:00