[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Pulp-list] Date and Time Feedback Requested!



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

Attachment: signature.asc
Description: This is a digitally signed message part


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]