Created
          July 11, 2013 09:07 
        
      - 
      
- 
        Save louy/5973862 to your computer and use it in GitHub Desktop. 
    A method to calculate Julian Day in JavaScript. Note: this is different than Julian Date
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | Date.prototype.julianDay = function(){ | |
| return (this / 86400000) - (this.getTimezoneOffset()/1440) + 2440587.5; | |
| }; | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment