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.