Daynumber of the year?

Daynumber of the year?

Post by Ronald Florenc » Thu, 08 Feb 2001 23:52:45



  Any idea how i can get  the number of the day in the year?

Try '%j' as an argument to `date' or `strftime.'

--

Ronald Florence                 http://members.home.net/18james

 
 
 

Daynumber of the year?

Post by B Youn » Fri, 09 Feb 2001 03:08:37


or
 date +%j
if you are in a hurry


> > Hello *,

> > Any idea how i can get  the number of the day in the year?

> perl -e 'print((localtime)[7]+1,"\n")'

> John