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

drivetribe-date-formatters

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

drivetribe-date-formatters

Collection of date formatter functions to format ISO dates for display purposes.

  • 1.6.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
2
Weekly downloads
 
Created
Source

drivetribe-date-formatters

Collection of date formatter functions to format ISO dates for display purposes.

Install

Install the module directly from npm:

npm install drivetribe-date-formatters --save

Formatters

Relative Date

Converts ISO date or Unix timestamp to a relative date like "just now" or "5 days ago".

relativeDate(date: number||string): string

Convert seconds to duration

Converts a time, given in seconds, to a human-readable duration in the [HH:M]M:SS format.

convertSecondsToDuration(seconds: number): string

Time format

Converts ISO date or Unix timestamp to the next time format: HH:MM[pm/am] according to user timezone.

formatTime(date: number||string): string

FAQs

Package last updated on 20 Apr 2020

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