dateCalculations before 1970 and after 2037

2002-01-05 Thread Ernst M. Reicher



Does anybody know how to work around MCs inability 
to calculate dateTime before 1970 and after 2037???

Regards, Ernst 



Re: dateCalculations before 1970 and after 2037

2002-01-05 Thread Hugh Senior


Does anybody know how to work around MCs inability to calculate dateTime
before 1970 and after 2037???

Regards,
   Ernst

Use the centuryCutOff function.

/H



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.306 / Virus Database: 166 - Release Date: 04/12/2001



re: dateCalculations before 1970 and after 2037

2002-01-05 Thread diskot123

Does anybody know how to work around MCs inability to calculate dateTime
=
before 1970 and after 2037???
Yeah what you need to do (what I did) is come up with routines to
dd/mm/ and time to julian date and then write a few routines to
convert from julian date back to a string, to and from dateitems, and
calculate the day of week from julian date.

Tuviah
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: re: dateCalculations before 1970 and after 2037

2002-01-05 Thread Shrink2Fit

These would be a great addition to MC. 

J/

[EMAIL PROTECTED] wrote on 1/5/2002 7:32 AM

Does anybody know how to work around MCs inability to calculate dateTime
=
before 1970 and after 2037???
Yeah what you need to do (what I did) is come up with routines to
dd/mm/ and time to julian date and then write a few routines to
convert from julian date back to a string, to and from dateitems, and
calculate the day of week from julian date.

Tuviah



---
Jonathan Feinstein
Shrink2Fit Software


___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: Re: dateCalculations before 1970 and after 2037

2002-01-05 Thread Ernst M. Reicher

 Date: Sat, 05 Jan 2002 11:53:07 +
 To: [EMAIL PROTECTED]
 From: Hugh Senior [EMAIL PROTECTED]
 Subject: Re: dateCalculations before 1970 and after 2037
 Reply-To: [EMAIL PROTECTED]

 Does anybody know how to work around MCs inability to calculate dateTime
 before 1970 and after 2037???
 
 Regards,
Ernst

 Use the centuryCutOff function.

 /H

Hi,
as I understand in the manual the centuryCutOff function is just for
deciding what century if you use a 2-digit year...

e.g. try to get the weekday of a day 50 years and 10 days in the future:
get the date
convert it to dateitems
add 50 to item 1 of it
add 10 to item 3 of it
convert it to dateitems

invalid date


it doesn´t concern the centuryCutOff

Regards,
  Ernst

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: re: dateCalculations before 1970 and after 2037

2002-01-05 Thread Ernst M. Reicher

 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Date: Sat, 5 Jan 2002 10:32:55 -0500
 Subject: re: dateCalculations before 1970 and after 2037
 Reply-To: [EMAIL PROTECTED]

 Does anybody know how to work around MCs inability to calculate dateTime
 =
 before 1970 and after 2037???
 Yeah what you need to do (what I did) is come up with routines to
 dd/mm/ and time to julian date and then write a few routines to
 convert from julian date back to a string, to and from dateitems, and
 calculate the day of week from julian date.

 Tuviah

Sorry,
but this sounds a little bit too complicated...
why does MCs convert to dateitems not work outside this ranges??
e.g. just to get the proper weekday of a day 50 years plus 10 days in future
should work with it
get the date
convert it to dateitems
add 50 to item 1 of it
add 10 to item 3 of it
convert it to dateitems
and as usual the last item should be the weekday
but MC returns invalid date

it must be a bug!!

Regards,
  Ernst

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard