Another update from ingydotnet^djgoku
This commit is contained in:
parent
91df62d461
commit
948b86eafa
7604 changed files with 108452 additions and 22726 deletions
6
Task/System-time/DCL/system-time.dcl
Normal file
6
Task/System-time/DCL/system-time.dcl
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
$ start_time = f$time()
|
||||
$ wait 0::10
|
||||
$ end_time = f$time()
|
||||
$ write sys$output "start time was ", start_time
|
||||
$ write sys$output "end time was ", end_time
|
||||
$ write sys$output "delta time is ", f$delta_time( start_time, end_time )
|
||||
8
Task/System-time/Elixir/system-time-1.elixir
Normal file
8
Task/System-time/Elixir/system-time-1.elixir
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
:os.timestamp # => {MegaSecs, Secs, MicroSecs}
|
||||
:erlang.time # => {Hour, Minute, Second}
|
||||
:erlang.date # => {Year, Month, Day}
|
||||
:erlang.localtime # => {{Year, Month, Day}, {Hour, Minute, Second}}
|
||||
:erlang.universaltime # => {{Year, Month, Day}, {Hour, Minute, Second}}
|
||||
|
||||
:calendar.local_time # => {{Year, Month, Day}, {Hour, Minute, Second}}
|
||||
:calendar.universal_time # => {{Year, Month, Day}, {Hour, Minute, Second}}
|
||||
1
Task/System-time/Elixir/system-time-2.elixir
Normal file
1
Task/System-time/Elixir/system-time-2.elixir
Normal file
|
|
@ -0,0 +1 @@
|
|||
:random.seed(:erlang.now)
|
||||
3
Task/System-time/Emacs-Lisp/system-time.l
Normal file
3
Task/System-time/Emacs-Lisp/system-time.l
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
(message "%s" (current-time-string))
|
||||
=>
|
||||
"Wed Oct 14 22:21:05 1987"
|
||||
4
Task/System-time/Julia/system-time.julia
Normal file
4
Task/System-time/Julia/system-time.julia
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
ts = time()
|
||||
|
||||
println("The system time is (in ISO 8601 format):")
|
||||
println(strftime(" %F %T %Z", ts))
|
||||
3
Task/System-time/PARI-GP/system-time-2.pari
Normal file
3
Task/System-time/PARI-GP/system-time-2.pari
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
install(time, "lf");
|
||||
t = time();
|
||||
print(t); \\ integer seconds since the epoch (usually 1 Jan 1970)
|
||||
|
|
@ -1 +1,2 @@
|
|||
say DateTime.now;
|
||||
dd DateTime.now.Instant;
|
||||
|
|
|
|||
|
|
@ -8,3 +8,6 @@ puts t.to_i # => 1388134823
|
|||
|
||||
# epoch time with fractional seconds
|
||||
puts t.to_f # => 1388134823.9801579
|
||||
|
||||
# epoch time as a rational (more precision):
|
||||
puts Time.now.to_r # 1424900671883862959/1000000000
|
||||
|
|
|
|||
5
Task/System-time/SETL/system-time-1.setl
Normal file
5
Task/System-time/SETL/system-time-1.setl
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
$ Unix time
|
||||
print(tod);
|
||||
|
||||
$ Human readable time and date
|
||||
print(date);
|
||||
2
Task/System-time/SETL/system-time-2.setl
Normal file
2
Task/System-time/SETL/system-time-2.setl
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
1447628158908
|
||||
Sun Nov 15 22:55:58 2015
|
||||
Loading…
Add table
Add a link
Reference in a new issue