[erlang-questions] ?DATE and ?TIME MACROs

Mats Cronqvist <>
Tue Oct 7 11:35:09 CEST 2008


harry wrote:
> Hi,
>
> trawling through the archives I found the answer to how to do a ?
> FUNCTION macro.
>
> How would you do ?DATE and ?TIME (apart from erlc -DDATE=`time` ....
> or something similar, which is *nix specific)
>
>   

-define(DATE,proplists:get_value(time,?MODULE:module_info(compile))).




More information about the erlang-questions mailing list