<365, plus 1 for each leap year.> <Les>
Which implies leap century, but I certainly hope century day is accurate within the same century despite leap year because that was part of the beauty of the idea. Les Koehler <[email protected]> Sent by: The IBM z/VM Operating System <[email protected]> 01/03/2011 11:53 AM Please respond to The IBM z/VM Operating System <[email protected]> To [email protected] cc Subject Re: How can get the Week day ? 365, plus 1 for each leap year. Les George Henke/NYLIC wrote: > Not quite sure what is the difference between the number of days since the > beginning of the century and the number of days since the most recent year > ending in '00' unless going back or ahead more than a century or 2. > > But I suppose there is a difference or it would have been moot. > > > > > Chip Davis <[email protected]> > Sent by: The IBM z/VM Operating System <[email protected]> > 01/03/2011 09:56 AM > Please respond to > The IBM z/VM Operating System <[email protected]> > > > To > [email protected] > cc > > Subject > Re: How can get the Week day ? > > > > > > > Be careful with Date('C'). It doesn't really give you the number of > days in the current century (as it was originally documented). It > returns the number of days since the beginning of the most recent year > ending in '00', e.g. '2000'. > > If you are doing any sort of arithmetic with dates, your best bet is > Date('Basedate'), especially if your dates might span a century boundary. > > -Chip- > > On 1/3/11 14:25 George Henke/NYLIC said: >> REXX also has a nifty function called Century Day that simplifies things > >> by working in century days, days since the beginning of the century, >> rather than days since the beginning of the year. >> >> >> >> *Sergio Lima <[email protected]>* >> Sent by: The IBM z/VM Operating System <[email protected]> >> >> 01/03/2011 08:26 AM >> Please respond to >> The IBM z/VM Operating System <[email protected]> >> >> >> >> To >> [email protected] >> cc >> >> Subject >> Re: How can get the Week day ? >> >> >> >> >> >> >> >> >> Carlos and Dave, >> >> Thanks very much. run ok... >> >> Startint the new year, needing ask, and a very good help. >> >> Best Regards >> >> Sergio >> >> > Date: Mon, 3 Jan 2011 14:20:36 +0100 >> > From: [email protected] >> > Subject: Re: How can get the Week day ? >> > To: [email protected] >> > >> > On Mon, 3 Jan 2011 07:17:47 -0600, Dave Jones > <[email protected]> >> > wrote: >> > > Try this Sergio..... >> > > day_name = Date('W', '01/12/10', 'E') >> > > >> > > On 01/03/2011 07:10 AM, Sergio Lima wrote: >> > >> >> > >> Hello List. >> > >> >> > >> I have a CMS file, and need convert the date in the format > DD/MM/YY >> > >> (01/12/10), to week day. >> > >> >> > >> Try used this, but don't work : >> > >> >> > >> 52 *-* data = word(saida,1) >> > >> > >> >> > >> >>> "01/12/10" >> > >> > >> >>> >> > >> 54 *-* campoa = date('w',data) >> > >> > >> >> > >> 54 +++ campoa = date('w',data) >> > >> > >> >> > >> 20 +++ call vetipo >> > >> > >> >> > >> 5 +++ call processa >> > >> > >> >> > >> DMSREX475E Error 40 running CPUXX EXEC, line 54: Incorrect call to >> > >> routine >> > >> >> > >> Is possible, do this what We need? >> > >> >> > >> Thanks very much. >> > >> Sergio Lima Costa >> > >> Sao Paulo - Brazil >> > or this >> > day_name = Date("W",Date("E"),"E") >> > >> > -- >> > Bien à vous >> > >> > _CARLOS ROMERO MARTIN_ > >
