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

julian-date

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

julian-date

Convert javascript dates to julian dates and days

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.2K
increased by11.26%
Maintainers
1
Weekly downloads
 
Created
Source

julian-date npm MIT Build Status

Installing via NPM

npm install julian-date

Browser

Browser Download

<script src="julianDate.min.js"></script>
<script>
var j = new JulianDate();
</script>

Create new JulianDate

var JulianDate = require('julian-date');

var j = new Julian();

// Get the julian date
j.julian(); // 2457088.5

// Get the javascript date
j.getDate(); // Fri Mar 06 2015 19:00:00 GMT-0500 (EST)


// Get the julian days
j.julianDays(); // 5543.5

Create new JulianDate from julian days or julian date

var JulianDate = require('julian-date');

var j1 = new Julian().julian(2457088.5);
j1.getDate() // Fri Mar 06 2015 19:00:00 GMT-0500 (EST)

var j2 = new Julian().julianDays(5543.5)
j2.getDate() // Fri Mar 06 2015 19:00:00 GMT-0500 (EST)

Keywords

FAQs

Package last updated on 08 Mar 2015

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