Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

kiss-date

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kiss-date

keep it simple stupid date library

  • 0.0.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
397
decreased by-12.56%
Maintainers
1
Weekly downloads
 
Created
Source

kiss-date

GitHub stars

keep it simple stupid date library

Please ★ this repo if you found it useful ★ ★ ★

I created kiss-date to provide a simple way to manipulate dates and timezones using simple math. The date is stored as a tuple (array) containing a unix timestamp and timezone offset in seconds. Adjusting the timezone is as simple as adding the unix timezone with the timezone offset dateArray[0] + dateArray[1].

Features

  • supports timezone manipulation

Installation

npm install --save kiss-date

Dependencies

Usage

import KissDate from 'kiss-date';
const date = new KissDate(new Date(), '-06:00');
console.log(date.dateArray); // [1610926376, -21600]
date.changeTimezone('+00:00');
console.log(date.dateArray); // [1610926376, 0]

Support

Submit an issue

Screenshots

Contribute a screenshot

Contributing

Review the guidelines for contributing

License

MIT License

Clay Risser © 2021

Changelog

Review the changelog

Credits

Support on Liberapay

A ridiculous amount of coffee ☕ ☕ ☕ was consumed in the process of building this project.

Add some fuel if you'd like to keep me going!

Liberapay receiving Liberapay patrons

Keywords

FAQs

Package last updated on 05 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc