realbasic-nug
[Top] [All Lists]

Re: About the Date Class and the Language Reference

To: realbasic-nug at lists dot realsoftware dot com
Subject: Re: About the Date Class and the Language Reference
From: Emile Schwarz <emile dot a dot schwarz at wanadoo dot fr>
Date: Tue, 31 Jan 2006 11:07:23 +0100
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <20060131063911 dot 8167B10A308D at lists dot realsoftware dot com>


realbasic-nug-request at lists dot realsoftware dot com wrote:
Subject: Re: About the Date Class and the Language Reference From: "Joseph J. Strout" 
<joe at strout dot net> Date: Mon, 30 Jan 2006 20:46:50 -0700 At 8:41 PM -0600 1/30/06, 
William Squires wrote:

But, IMHO, it shouldn't be. Adding it should act as "((month - 1) Mod 12) + 1", with the 'remainder' carried over into the year field. Likewise, subtracting, should also be Mod 12, and ditto for the year. Likewise, the Date class should be smart enough to know how many days are in any particular month for any particular year, and should also make additions to the Day field in an intelligent manner.


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).

Joe, William does not power on its brain before starting to write, so his fingers wrote the text before its brain make a chance to do something (anything) before the mail was sent ;)


> If it's not documented, then this is an
oversight in the documentation.

It is not documented in the Language Reference for REALbasic 2005r4.



Emile


_______________________________________________
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>