AnsweredAssumed Answered

vrf Time Zone and RFC 2822

Question asked by VRFuser on Feb 11, 2003
Yes, I am running Vee6.01 on Win2K and also get March!
The reason seems to be that while wday(date) gives an output from 0 thru 6,
month(date) gives 1 thru 12, not 0 thru 11 as you might expect.
The amswer is to put     " ", MonthTbl[month(C)-1]      in the third
transaction of the To String object.

Brian


Did anyone else come up with the month being March? I'm running vee 6.01 on
NT 4.
Thanks

Mike Groves wrote:

> Robert,
>
> I took your concept and was able to eliminate some boxes
> and clean it up a little. Your idea seems to work fine.
> I don't think you need anything alse. I will tuck this
> in my archives in case I need it in the future. Thanks.
>
> Mike
>
> PS Need any help up there in Fremont?  I'm always looking
> for ways to get employed again. I'm down in SJ. 
>
> -----Original Message-----
> From: Robert Reavis [mailto:robert@wscw.com]
> Sent: Tuesday, February 11, 2003 11:24 PM
> To: VEE vrf
> Subject: [vrf] Re: Time Zone and RFC 2822
>
> Lets try this again with the program properly attached.
>
> ----- Original Message -----
> From: "Robert Reavis" <robert@wscw.com>
> To: "VEE vrf" <vrf@it.lists.it.agilent.com>
> Sent: Tuesday, February 11, 2003 11:03 PM
> Subject: [vrf] Time Zone and RFC 2822
>
> > Using the To/From Socket object for sending SMTP email was the easy
part.
> > The more difficult part is assembling a date in the form specified in
RFC
> > 2822, in particular, the time zone value.  The time zone value is
stored
> in
> > the Microsoft Windows registry and is not directly accessible by using
any
> > VEE objects that I could find.  To keep the program simple and pure
VEE, I
> > do not want to use any external DLLs.
> >
> > Start with the definition of NOW() as being seconds since the Epoch
> > (expressed in UTC) plus the local time zone offset (from Windows),
which
> > gives the result in local time.  To extract the offset, I extracted the
> HOUR
> > and MINUTE values from a time value expressed as a floating point zero,
> and
> > expressed 0 to 23 hours as 0 to12 and -11 to -1.  A time expression is
> then
> > built in the RFC 2822 form.
> >
> > Before, the VEE way:
> > Tue 11/Feb/2003 22:38:55
> >
> > After, the RFC 2822 way:
> > Tue, 11 Feb 2003 22:38:55 -0800
> >
> > Does anyone know of a better or more straight-forward way?
> >
> > Robert Reavis
> > Warm Springs Computer Works
> > Fremont, California
>
>
------------------------------------------------------------------------
>                      Name: Time_Zone1.vee
>    Time_Zone1.vee    Type: VEE Program
(application/x-unknown-content-type-VEE.Program)
>                  Encoding: quoted-printable
>
>
------------------------------------------------------------------------
> ---
> You are currently subscribed to vrf as: steve.boerman@skyworksinc.com
> To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
> To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
> To send messages to this mailing list,  email
"vrf@it.lists.it.agilent.com".
> If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".

--
Steve Boerman
SR. MMIC Engineer
ext 4477, lab 4608



---
You are currently subscribed to vrf as: Brian.Hick@Zarlink.Com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email
"vrf@it.lists.it.agilent.com".
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".





---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@it.lists.it.agilent.com". 
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".

Outcomes