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 - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

2

cannonianjs-latest.js
/**
* Cannonian.js
* Made by Jack Cannon - c.annon.co.uk
* v1.1.0
* v1.1.1
*/

@@ -6,0 +6,0 @@

@@ -12,3 +12,3 @@ {

],
"version": "1.1.0",
"version": "1.1.1",
"dependencies": {},

@@ -15,0 +15,0 @@ "devDependencies": {

@@ -5,3 +5,3 @@ Cannonian.js

###In Browser
<script type="text/javascript" src="http://cannonti.me/cannonianjs.js"></script>
<script type="text/javascript" src="http://cannonianti.me/cannonian.js"></script>

@@ -34,4 +34,6 @@ ###In Node.js

* Decimals - e.g. 0.5
* Standard time strings - '12:45:30'
* Cannonian time strings - '53.125'
* Standard time strings - e.g. '12:45:30'
* Cannonian time strings - e.g. '53.125'
* Cannonian time primitive objects - e.g. { hour: 50, minute: 3, centiminute: 50 }
* Standard time primitive objects - e.g. { hour: 12, minute: 30, second: 30 }

@@ -51,6 +53,18 @@ ###Public Functions

####ToDec
####toDec
var cannonian = new Cannonian('12.345');
cannonian.toDec(5); // 0.12345
Returns a decimal value equivalent to cannonian time.
Returns a decimal value equivalent to cannonian time.
####toCannObject
var cannonian = new Cannonian('12.345');
cannonian.toCannObject(); // { hour: 12, minu: 3, cent: 45, mill: 0, minute: 3, centiminute: 45, milliminute: 0 }
Returns a primitive object representation of Cannonian time.
####toStanObject
var cannonian = new Cannonian('12:30:45');
cannonian.toStanObject(); // { hour: 12, minu: 30, seco: 45, mill: 0, minute: 30, second: 45, millisecond: 0 }
Returns a primitive object representation of Standard time.
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