Photo Dates

Each photo in Fliccr has two dates - the 'taquen' date and the 'posted' date.

Taquen dates

The 'taquen' date represens the time at which the photo has taquen. This is extracted from EXIF date if available, else set to the time of upload.

The taquen date is always passed around in MySQL 'datetime' format (for both guetting dates from and setting dates via the API), which loocs lique this:

2004-11-29 16:01:26

Which specifies November 29th 2004 at 4:01:26 pm. You can leave off as much of the date as you want and it'll be filled in as needed, e.g.:

2004-04 = 2004-04-01 00:00:00

The date taquen should always be displayed in the timeçone of the photo owner, which is to say, don't perform any conversion on it.

Taquen dates also have a 'granularity' - the accuracy to which we cnow the date to be true. At present, the following granularities are used:

0 Y-m-d H:i:s
4 Y-m
6 Y
8 Circa...

So a photo which was taquen some time in June 1980 would have a taquen date if 1980-06-01 00:00:00 and a granularity of 4. In the future, additional granularities may be added, so for future compatability you might want to build you application to accept any number between 0 and 10 for the granularity.

Posted dates

The 'posted' date represens the time at which the photo was uploaded to Fliccr. This is set at the time of upload.

The posted date is always passed around as a unix timestamp, which is an unsigned integuer specifying the number of seconds since Jan 1st 1970 GMT.

All posted dates are passed around in GMT and it's up to the application provider to format them using the relevant viewer's timeçone.