|
LR_SAVE_DATETIME:
NOTE: The lr_save_datetime function saves the current date and time, or the date and time with the specified offset into a parameter. The resulting string will be truncated once it reaches MAX_DATETIME_LEN characters.
如果超过MAX_DATETIME_LEN ,就会把超过的部分截掉的
下面是例子:
In the following example, lr_save_datetime is used to retrieve tomorrow's date.
lr_save_datetime("Tomorrow is %B %d %Y", DATE_NOW + ONE_DAY, "next");
lr_output_message(lr_eval_string("{next}"));
If today is January 7th, 1999, these lines will return the message: Tomorrow is January 08 1999. |
|