Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: r1b on February 10, 2011, 01:08:56 AM



Title: Json-rpc transaction date and time
Post by: r1b on February 10, 2011, 01:08:56 AM
Hi I've been working on integrating bitcoin into my personal finance application here: www.infinitypfm.org but I am scratching my head on how to get accurate date and time information on transactions using the api.

I searched over the docs here but am not seeing it: https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_Calls_list

Is this information available?

Thanks.


Title: Re: Json-rpc transaction date and time
Post by: jgarzik on February 10, 2011, 01:26:18 AM
Hi I've been working on integrating bitcoin into my personal finance application here: www.infinitypfm.org but I am scratching my head on how to get accurate date and time information on transactions using the api.

I searched over the docs here but am not seeing it: https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_Calls_list

'listtransactions' gives you 'time', which is Unix time (seconds since Jan 1, 1970 UTC)


Title: Re: Json-rpc transaction date and time
Post by: LZ on February 10, 2011, 05:14:10 AM
Unix time (http://en.wikipedia.org/wiki/Unix_time)


Title: Re: Json-rpc transaction date and time
Post by: genjix on February 10, 2011, 05:33:12 AM
you need the new version which is 3.x.20

not on front page yet i dont think


Title: Re: Json-rpc transaction date and time
Post by: r1b on February 10, 2011, 10:38:05 PM
Ok.  Will upgrade and give it a shot.  Thanks.


Title: Re: Json-rpc transaction date and time
Post by: LZ on February 11, 2011, 07:47:38 AM
If you will use Unix time, remember about the Y2K38 (http://en.wikipedia.org/wiki/Year_2038_problem) problem. (Bitcoin uses int64 to resolve it.)

https://web.archive.org/web/20070318044515if_/http://upload.wikimedia.org:80/wikipedia/commons/e/e9/Year_2038_problem.gif