目录

date

此方法返回当前系统日期。

语法 (Syntax)

date()

参数 (Parameters)

  • None

返回值 (Return Value)

当前日期作为列表返回。

例如 (For example)

-module(helloworld). 
-export([start/0]). 
start() ->
   io:fwrite("~p~n",[date()]).

输出 (Output)

当我们运行上述程序时,我们将得到以下结果。 日期值取决于当前系统日期。 一个例子如下 -

{2016,4,17}
↑回到顶部↑
WIKI教程 @2018