[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

MiniExifTool date formats

12 34

6/19/2007 6:48:00 PM

I'm getting

Sat Jun 09 23:10:57 -0700 2007

as output from

photo.DateTimeOriginal

I'd like to avoid parsing it myself and should think I'd be able to get
an easier to deal with format. I'm going to change it to 2006.10.14
after shifting the time from the camera's UTC to the local date.

So a YYYYMMDD format would be easy to deal with. I suspect that the
format I'm seeing has to do with using it on my OS X system. (I'm
guessing that the -0700 is the GMT offset, but this is my computer
offset. My camera doesn't know what time zone it is set to. That's a
clue to me that my OS is affecting the output.)

Thanks for any help. And thanks again Jan for putting MiniExifTool
together.

--
Posted via http://www.ruby-....

2 Answers

12 34

6/19/2007 7:11:00 PM

0

It worked! Posting that is. Posting a question engaged the correct part
of my brain.

Time.xmlschema is close enough. I am wondering if there aren't more
extensive conversions as in PHP using mktime to convert formats.

--
Posted via http://www.ruby-....

12 34

6/19/2007 7:15:00 PM

0

12 34 wrote:
> It worked! Posting that is. Posting a question engaged the correct part
> of my brain.
>
> Time.xmlschema is close enough. I am wondering if there aren't more
> extensive conversions as in PHP using mktime to convert formats.

Worked again. Found strtime.

Too bad we can't revise or delete in this forum.

--
Posted via http://www.ruby-....