[Pulp-list] Date and Time Feedback Requested!

Jason L Connor jconnor at redhat.com
Fri Apr 15 23:52:15 UTC 2011


On Fri, 2011-04-15 at 14:17 -0700, Mike McCune wrote:
> Hey, how about this!  Just include the timestamp on the output:
> 
> {
>      "day": "15",
>      "month": "Apr",
>      "year": "2011",
>      "hour": "11",
>      "minute": "10",
>      "second": "27",
>      "timestamp": "1302891027"
> },
> 
> I realize this is a bit of work at the API handler level because you 
> would have todo some conversions but it would keep everyone happy.
> 
> 

This is an excellent suggestion!
BTW, all the other fields are integers (e.g. 'month': 12)

I'd even go as far to call it 'utctimestamp' so there's no confusion
around the timezone.

-- 
Jason L Connor
linear on freenode #pulp
http://pulpproject.org/
RHCE: 805010912355231
GPG Fingerprint: 2048R/CC4ED7C1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/pulp-list/attachments/20110415/97fa5b90/attachment.sig>


More information about the Pulp-list mailing list