Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
51044b3d
Commit
51044b3d
authored
Mar 08, 2000
by
Lawson Whitney
Committed by
Alexandre Julliard
Mar 08, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Corrected value for DAYS_IN_ONE_YEAR.
parent
7d343401
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
variant.c
dlls/oleaut32/variant.c
+7
-4
No files found.
dlls/oleaut32/variant.c
View file @
51044b3d
...
@@ -88,12 +88,15 @@ static char pBuffer[BUFFER_MAX];
...
@@ -88,12 +88,15 @@ static char pBuffer[BUFFER_MAX];
* (((y % 4) == 0) && (((y % 100) != 0) || ((y % 400) == 0)))
* (((y % 4) == 0) && (((y % 100) != 0) || ((y % 400) == 0)))
* So according to this there is 365.2515 days in one year.
* So according to this there is 365.2515 days in one year.
* One + every four years: 1/4 -> 365.25
* One + every four years: 1/4 -> 365.25
* One - every 100 years: 1/100 -> 365.0
0
1
* One - every 100 years: 1/100 -> 365.01
* One + every 400 years: 1/400 -> 365.0025
* One + every 400 years: 1/400 -> 365.0025
*/
*/
static
const
double
DAYS_IN_ONE_YEAR
=
365
.
2515
;
/* static const double DAYS_IN_ONE_YEAR = 365.2515;
*
* ^^ Might this be the key to an easy way to factor large prime numbers?
* Let's try using arithmetic. <lawson_whitney@juno.com> 7 Mar 2000
*/
static
const
double
DAYS_IN_ONE_YEAR
=
365
.
2425
;
/******************************************************************************
/******************************************************************************
* DateTimeStringToTm [INTERNAL]
* DateTimeStringToTm [INTERNAL]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment