Re: Days of the Week

charlie thibault (cth@bruker.com)
Thu, 2 Feb 95 9:33:13 EST

According to Alan Boyd:
>
> When ADAKOS tells you the date (DAT command), it also tells you the day of
> the week (Mon, Tue, etc). Does anyone know how to extract this information for use
> in a PASCOM program? I'm already using XADAKLIB to read the date and the time, but
> I don't know how to get this additional item.

Unfortunately the ADAKOS function (RCS) used by XADAKLIB to acces the
current date only returns a bcd (binary coded decimal) value of the
date and time. The day of the week is something that ADAKOS does internally
when it displays the date. If you really need the dt of the week your
only option is to find a calandar algorithm and code it into your program.

-- 
==================================================================
	
       ...     ...	Charles G. Thibault, Ph.D.
      .    * .    .	Manager of Software Development
       .   . .   .	Bruker Instruments Inc.
       B R U K E R	Manning Park
       .   . .   .	Billerica, MA. 01821 USA
      .    * .    .	(508)667-9580 x218
       ...     ...      cth@bii.bruker.com

=================================================================