Subversion Repositories wimsdev

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
23 reyssat 1
 
2
cnt=$[$cnt]
3
!if $cnt=$empty or $cnt=NaN or $cnt<1 or $cnt>100
4
 cnt=1
5
!endif
6
 
7
!if $style iswordof day week month year
8
 date1=!date -d "$cnt $(style)s ago" '+%Y%m%d'
9
 date2=!date -d "1 day ago" '+%Y%m%d'
10
 !exit
11
!endif
12
 
13
!if $style=beginning
14
 date1=$start_year$start_month$start_day
15
 date2=!date -d "1 day ago" '+%Y%m%d'
16
 !exit
17
!endif
18