Bitcoin Forum
May 26, 2024, 11:51:15 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Json-rpc transaction date and time  (Read 1478 times)
r1b (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile WWW
February 10, 2011, 01:08:56 AM
 #1

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.
jgarzik
Legendary
*
qt
Offline Offline

Activity: 1596
Merit: 1091


View Profile
February 10, 2011, 01:26:18 AM
 #2

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)

Jeff Garzik, Bloq CEO, former bitcoin core dev team; opinions are my own.
Visit bloq.com / metronome.io
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
LZ
Legendary
*
Offline Offline

Activity: 1722
Merit: 1072


P2P Cryptocurrency


View Profile
February 10, 2011, 05:14:10 AM
 #3

Unix time

My OpenPGP fingerprint: 5099EB8C0F2E68C63B4ECBB9A9D0993E04143362
genjix
Legendary
*
expert
Offline Offline

Activity: 1232
Merit: 1076


View Profile
February 10, 2011, 05:33:12 AM
 #4

you need the new version which is 3.x.20

not on front page yet i dont think
r1b (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile WWW
February 10, 2011, 10:38:05 PM
 #5

Ok.  Will upgrade and give it a shot.  Thanks.
LZ
Legendary
*
Offline Offline

Activity: 1722
Merit: 1072


P2P Cryptocurrency


View Profile
February 11, 2011, 07:47:38 AM
Last edit: July 16, 2020, 10:10:08 PM by LZ
 #6

If you will use Unix time, remember about the Y2K38 problem. (Bitcoin uses int64 to resolve it.)



My OpenPGP fingerprint: 5099EB8C0F2E68C63B4ECBB9A9D0993E04143362
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!