From: CryptoManiac Date: Thu, 17 Sep 2015 12:58:15 +0000 (-0700) Subject: Add examples. X-Git-Tag: nvc-v0.5.4~36 X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=commitdiff_plain;h=bc33cfede4c7668b7476e1aa3894cac661c23a62 Add examples. --- diff --git a/src/rpcnet.cpp b/src/rpcnet.cpp index ab3f281..3386cd8 100644 --- a/src/rpcnet.cpp +++ b/src/rpcnet.cpp @@ -347,6 +347,35 @@ Value getnettotals(const Array& params, bool fHelp) return obj; } +/* +05:53:45 ntptime +05:53:48 +{ +"epoch" : 1442494427, +"time" : "2015-09-17 12:53:47 UTC" +} + +05:53:56 ntptime time.windows.com +05:53:57 +{ +"epoch" : 1442494436, +"time" : "2015-09-17 12:53:56 UTC" +} + +05:53:59 ntptime time.windows.com +05:54:00 +{ +"epoch" : 1442494439, +"time" : "2015-09-17 12:53:59 UTC" +} + +05:54:33 ntptime time-a.nist.gov +05:54:34 +{ +"epoch" : 1442494473, +"time" : "2015-09-17 12:54:33 UTC" +}*/ + Value ntptime(const Array& params, bool fHelp) { if (fHelp || params.size() > 1)