|
From what I can tell, the information in that tv_sec and tv_usec only contain the information for the month, day, and year. For the time I simply get midnight, or 12:00AM. Is that correct, or am I missing something? For example, when converting the timestamps for metrics gathered yesterday 07/07/2015, I get the following results for the timestamp:   Â07/07/2015 00:00:00 for tv_sec   Â01/07/1970 00:00:00 for tv_usec The code I used to extract that is:   Âdatetime.date.fromtimestamp(result.contents.timestamp.tv_usec).strftime("%m/%d/%Y %H:%M:%S") Thanks, Rohan On Wed, Jul 8, 2015 at 9:43 AM Rohan Arora <rarora2012@xxxxxxxxx> wrote:
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [pcp] Help with Python API, Rohan Arora |
|---|---|
| Next by Date: | Re: [pcp] Help with Python API, Rohan Arora |
| Previous by Thread: | Re: [pcp] Help with Python API, Rohan Arora |
| Next by Thread: | Re: [pcp] Help with Python API, David Smith |
| Indexes: | [Date] [Thread] [Top] [All Lists] |