Created
November 21, 2013 22:43
-
-
Save nelhage/7591159 to your computer and use it in GitHub Desktop.
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
- def self.julian_date | |
+ def self.julian_date(t=Time.now) | |
# consistent for duration of process | |
- @julian_date ||= utc_to_submission(Time.now).strftime('%y%j') | |
+ @julian_date ||= utc_to_submission(t).strftime('%y%j') | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment