realbasic-nug
[Top] [All Lists]

Re: About the Date Class and the Language Reference

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: About the Date Class and the Language Reference
From: "A.J.J. Kuiper" <a dot kuiper7 at chello dot nl>
Date: Tue, 31 Jan 2006 12:49:40 +0100
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <2006131112720406105869 dot realbasic at garman dot demon dot co dot uk>
And surprise:
d.Month = d.Month - 13

is oke again.

Steve Garman wrote:

In a message regarding Re: About the Date Class and the Language Reference
dated Mon, 30 Jan 2006 20:46:50 -0700, Joseph J. Strout said that ...

It is, and it does. A great deal of effort went into making sure it works that way (well, except on the Mac, where such nice behavior is provided by the OS). If it's not documented, then this is an oversight in the documentation.

I you've got access to a Windows machine, try this.

 Dim d As New Date
 d.Month = d.Month - 12
 MsgBox CStr(d.Year)
It gives me 2004

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>