Kaydet (Commit) f65d85da authored tarafından Vladimir Glazounov's avatar Vladimir Glazounov

INTEGRATION: CWS npower4 (1.66.14); FILE MERGED

2006/10/18 15:46:54 npower 1.66.14.4: #i64882# get rid of compiler warning
2006/10/16 08:27:10 npower 1.66.14.3: i#64882# compile bug
2006/10/14 11:02:52 npower 1.66.14.2: RESYNC: (1.66-1.71); FILE MERGED
2006/04/28 13:23:55 npower 1.66.14.1: #i64884# change behavior of wait function depending on stat of VBASupport option
üst 46a39770
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: methods.cxx,v $ * $RCSfile: methods.cxx,v $
* *
* $Revision: 1.73 $ * $Revision: 1.74 $
* *
* last change: $Author: vg $ $Date: 2006-11-02 11:03:11 $ * last change: $Author: vg $ $Date: 2006-11-02 16:33:00 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -2051,13 +2051,8 @@ RTLFUNC(Second) ...@@ -2051,13 +2051,8 @@ RTLFUNC(Second)
} }
} }
// Date Now(void) double Now_Impl()
RTLFUNC(Now)
{ {
(void)pBasic;
(void)bWrite;
Date aDate; Date aDate;
Time aTime; Time aTime;
double aSerial = (double)GetDayDiff( aDate ); double aSerial = (double)GetDayDiff( aDate );
...@@ -2067,7 +2062,16 @@ RTLFUNC(Now) ...@@ -2067,7 +2062,16 @@ RTLFUNC(Now)
nSeconds += aTime.GetSec(); nSeconds += aTime.GetSec();
double nDays = ((double)nSeconds) / (double)(24.0*3600.0); double nDays = ((double)nSeconds) / (double)(24.0*3600.0);
aSerial += nDays; aSerial += nDays;
rPar.Get(0)->PutDate( aSerial ); return aSerial;
}
// Date Now(void)
RTLFUNC(Now)
{
(void)pBasic;
(void)bWrite;
rPar.Get(0)->PutDate( Now_Impl() );
} }
// Date Time(void) // Date Time(void)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment