From 6487aac5977cf470bc6a2cd0964da2850ee38717 Mon Sep 17 00:00:00 2001
From: Rickard Green
Returns current
+
This time is not a monotonically increasing time.
Returns current
+
Calling
This time is not a monotonically increasing time.
Returns a tuple in the same format as
The most obvious use for this function is logging. The tuple can be used together with the function
Example of code formatting a string in the format "DD Mon YYYY HH:MM:SS.mmmmmm", where DD is the day of month, Mon is the textual month name, YYYY is the year, HH:MM:SS is the time and mmmmmm is the microseconds in six positions:
+Returns current
+
Example of code formatting a string in the format "DD Mon YYYY HH:MM:SS.mmmmmm", where + DD is the day of month, Mon is the textual month name, YYYY is the year, HH:MM:SS is the time and + mmmmmm is the microseconds in six positions:
-module(print_time).
-export([format_utc_timestamp/0]).
@@ -155,6 +190,9 @@ format_utc_timestamp() ->
1> io:format("~s~n",[print_time:format_utc_timestamp()]).
29 Apr 2009 9:55:30.051711
+ OS system time can also be retreived by
+ os:system_time/0 ,
+ and os:system_time/1 .