How you format the current time
PHP
$spyderDate = date(‘Y-m-d H:i:s’);
http://us2.php.net/manual/en/function.date.php
RUBY
spyder_date = Time.now.strftime(“Y-m-d %H:M:%S”)
http://www.ruby.ch/ProgrammingRuby/htmlC/ref_c_time.html#strftime
Formating integer as time (seconds from UNIX epoch)
PHP
$time = 123456 // seconds passed from unix epoch
$spyderDate = date(‘Y-m-d H:i:s’, $time);
RUBY
time = 123456
spyder_date = Time.at(time).strftime(“Y-m-d %H:M:%S”)