In this guide, we will discuss Erlang now. This method returns the tuple {MegaSecs, Secs, MicroSecs} which is the elapsed time since 00:00 GMT, January 1, 1970.
Syntax
now()
Parameters
- None
Return Value
Returns the tuple {MegaSecs, Secs, MicroSecs} which is the elapsed time since 00:00 GMT, January 1, 1970.
For example
-module(helloworld). -export([start/0]). start() -> io:fwrite("~p~n",[erlang:now()]).
Output
When we run the above program, we will get the following result. Depending on the system, the output will differ.
{1460,893073,767749}
Next Topic : Click Here
Pingback: Erlang - memory | Adglob Infosystem Pvt Ltd
Pingback: Erlang - BIFS | Adglob Infosystem Pvt Ltd