Subj : Some over haching
To   : Gert Andersen
From : Janis Kracht
Date : Fri Jan 06 2017 01:02 am

Hi Gert,

>I just come to send out some files here Thursday evening several times and wit
> day number for Friday.
> This while I was trying out to make some updated daily nodelst files for stn
> and pasnet.
>The problem is that use of julian day for Europe and US only works early in th
> morning like between midnight and midday.
> The best time to use julian day is do it when the world have the same day
> number else have one to manage it with the number to be like ${num}-1 so the
> number get the right digit when it shall work automatic.

I haven't had a problem with the date, Gert..

I use this in my script:

num=`date +%j --date=Friday`
pick=`expr substr $num 2 3`
year=`date +%Y`
lastwk=$(($num -7))
lpick=`expr substr $lastwk 2 3`

Then I use the appropriate var where I need it.

Hope this helps..

Take care,
Janis

--- BBBS/Li6 v4.10 Toy-3
* Origin: Prism bbs (1:261/38)