tags:自定义函数手册

6.9 Duration类型

定义Duration:

<Integer>.years; //1.years  一年;
<Integer>.months;
<Integer>.days;
<Integer>.hours;
<Integer>.minutes;

用法举例:
1.years //一年
Date date = "2018-05-29"
date = date+1.years //"2019-05-29"

results matching ""

    No results matching ""