Time for an 2014 update…

This commit is contained in:
Ingy döt Net 2014-01-17 05:32:22 +00:00
parent 372c577f83
commit 09687c4926
2520 changed files with 34227 additions and 7318 deletions

View file

@ -0,0 +1,8 @@
#include <chrono>
#include <ctime> //for conversion std::ctime()
#include <iostream>
int main() {
auto timenow = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now());
std::cout << std::ctime(&timenow) << std::endl;
}

View file

@ -1,10 +1,10 @@
t = Time.now
# textual
puts t # => Wed Aug 05 20:14:50 -0400 2009
puts t # => 2013-12-27 18:00:23 +0900
# epoch time
puts t.to_i # => 1249517690
puts t.to_i # => 1388134823
# epoch time with fractional seconds
puts t.to_f # => 1249517690.74388
puts t.to_f # => 1388134823.9801579

View file

@ -0,0 +1 @@
Debug.Print Now()