Subversion Repositories wimsdev

Rev

Rev 2415 | Details | Compare with Previous | 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
15609 bpr 4
  cnt=1
23 reyssat 5
!endif
6
 
7
!if $style iswordof day week month year
15609 bpr 8
  date1=!date -d "$cnt $(style)s ago" '+%Y%m%d'
9
  date2=!date -d "1 day ago" '+%Y%m%d'
10
  !exit
23 reyssat 11
!endif
12
 
13
!if $style=beginning
15609 bpr 14
  date1=$start_year$start_month$start_day
15
  date2=!date -d "1 day ago" '+%Y%m%d'
16
  !exit
23 reyssat 17
!endif