0

I write a small program using the Vircurex API for trading e-currencies. Their documentation is using Ruby code examples and I am unsure of what the equivalent is in C#. For anyone interested, their documentation is listed here:

https://vircurex.com/welcome/api

My problem is creating the timestamp. They say it is "a UTC timestamp, must be within 5 minutes of the current time". Their example in Ruby is:

t = Time.now.gmtime.strftime("%Y-%m-%dT%H:%M:%S")

I can't figure out the right way to format it in C# because I am unsure of what exactly the Ruby method will return. I guess it is something like this (don't know the ???):

"2012-11-10???18:16:12"

but can someone give an example of the ruby call? I need to format the DateTime.Now-call to be in the same format.

Kasper Hansen
  • 6,307
  • 21
  • 70
  • 106

1 Answers1

2

It returns "2013-12-29T17:48:17" which is a format specified by ISO8601 standard

Bart
  • 2,606
  • 21
  • 32