New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cannonian

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cannonian

Metric time converter

  • 0.0.3
  • npm
  • Socket score

Version published
Weekly downloads
6
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

Cannonianjs API

##Install

###In Browser

###In Node.js npm install cannonian

##Usage

###Types There are several types that cannonianjs deals with:

  • 'date' - date objects (e.g. new Date())
  • 'datestring' - e.g. "Sat Jan 01 2000 00:00:00 GMT+0000 (GMT Standard Time)"
  • 'standardstring' - e.g. '23:59:59:999'
  • 'standardstringshort' - e.g. '23:59'
  • 'cannonianstring' - e.g. '99:09:99:99:999' (this is a string output of cannonian time)
  • 'cannonianobj' - e.g. new cannonianjs() (object that holds .stand and .canno times)
  • 'dec' - e.g. 0.75 (cannonian time in decimal format)

###Functions

  • .conv(p, fromType, toType) - converts between types p - optional. parameter to convert. if not given, will use the cannonian object that the function is being called from. fromType - optional. type of object currently. if not given, type will be calculated. toType - optional. type you wish to convert to. if not given, will return cannonianjs object.

  • .getType(p) - returns the type of the given parameter. p - optional. parameter. if not given, will use the cannonian object that the function is being called from.

  • .parse(type, p) - translates object into cannonianjs object style format type - required. type of the parameter given p - parameter to convert

Keywords

FAQs

Package last updated on 20 Apr 2013

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