该方法用于给出系统中的本地日期和时间。
localtime()
该方法用于给出系统中的本地日期和时间。
-module(helloLearnfk). -export([start/0]). start() -> io:fwrite("~p~n",[erlang:localtime()]).
当我们运行上面的程序时,我们将得到以下输出。
链接:https://www.learnfk.comhttps://www.learnfk.com/erlang/erlang-localtime.html
来源:LearnFk无涯教程网
{{2016,4,17},{11,33,9}}
祝学习愉快!(内容编辑有误?请选中要编辑内容 -> 右键 -> 修改 -> 提交!)