Skip to content

Instantly share code, notes, and snippets.

@nelhage
Created November 21, 2013 22:43
Show Gist options
  • Save nelhage/7591159 to your computer and use it in GitHub Desktop.
Save nelhage/7591159 to your computer and use it in GitHub Desktop.
- 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