[ic] Date time stamp

Rene Hertell interchange-users at hertell.com
Mon Jan 5 13:56:58 EST 2004


> > You should check the documentation for the time tag:
> >
>
> Yeah I did that and I see how to adjust it so it always 3 hours
> ahead of the
> real time etc. but that's not really what I need. I guess what I
> need is an
> if/else statement that says;
> If day=Monday
> Add 6 days to the date
> Else if day=Tuesday add 5 days to the date
> Else if day=Wednesday add 4 days to the date
> Etc.
>
> Does anyone know how to do this?

You should also check the man-page for time (man time). There you get all
options that are available for the time-tag. For example %w returns the
current day (0=Sunday, 1=Monday, 2=Tuesday etc.) With this value you can do
your ifs and elses :)

Rene




More information about the interchange-users mailing list