In those classes, those are so-called “ajd” and “jd”.The modified Julian day number is in elapsed days since midnight (Coordinated universal time) on November 17, 1858 CE (in the Gregorian calendar).I just used this script to successfully rename over 1,000 JPG files based on the date and timestamp of the JPEG file. /usr/bin/ruby # a ruby script to get the date and timestamp from a jpeg file.# this script prints a string, something like '20080801.224705'. # released here under the creative commons share-alike license: # require 'rubygems' require 'exifr' input_file = ARGV # get the date/time info from the JPEG file d1 = EXIFR:: JPEG.new(input_file).date_time # convert to the format we need #d = 'Wed Apr 01 -0800 2009' a,b,d,hms,poop,y = d1.to_s.split d2 = "# # # # #" # create a real date d3 = Date Time::strptime(d2, '%a %b %d %H:%M:%S %Y') # get this date in the desired format s = d3.strftime('%Y%m%d.%H%M%S') puts s As you can see, this Ruby script is meant to work with one filename at a time.
Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms. Wondering if someone can help me out with a date issue.
In this document, the astronomical Julian day number is same as the original Julian day number.
And the chronological Julian day number is a variation of the Julian day number. In this document, when the term “Julian day number” simply appears, it just refers to “chronological Julian day number”, not the original.
Wanting to sort these files in order by date (like they were on my i Phone before I downloaded them to my Windows computer), I created a Ruby script to help me rename all my i Phone photos in date sequence.
In short, if a JPEG file with this name: While this new JPEG filename isn't too exciting, it does put all of my JPEG image files back into date/time sorted order in the Mac Finder.