-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0dd26e8
commit 564d4ba
Showing
5 changed files
with
69 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
layout: doc | ||
outline: deep | ||
lang: en-US | ||
--- | ||
|
||
# Serial Numbers | ||
::: warning | ||
**Note:** This draft page is under construction 🚧 | ||
::: | ||
**Note**: For convenience, dates presented on this page are formatted in accordance with the ISO 8601 international standard. IronCalc can recognize and display dates in other formats. | ||
|
||
IronCalc stores dates and times as positive numbers, referred to as *serial numbers*. Serial numbers can be formatted to display the date and time. | ||
|
||
The integer part of a serial number represents the date, as a count of the days since the fixed starting date of 1899-12-30. Hence dates are represented by a unique, sequential integer value, for example: | ||
* 1 corresponds to 1899-12-31. | ||
* 2 corresponds to 1900-01-01. | ||
* 36,526 corresponds to 2000-01-01. | ||
* 45,658 corresponds to 2025-01-01. | ||
* 2,958,465 corresponds to 9999-12-31. | ||
|
||
To illustrate the concept, type the value 2 into an empty cell that is initially formatted as a number. When you subsequently change the cell to a date format, it will update to show the date 1900-01-01. | ||
|
||
The fractional part of a serial number represents time, as a fraction of the day. For example: | ||
* 0.0 corresponds to 00:00:00 (midnight) | ||
* 0.041666667 corresponds to 01:00:00. | ||
* 0.5 corresponds to 12:00:00 (noon) | ||
* 0.75 corresponds to 18:00:00. | ||
* 0.99 corresponds to 23:45:36. | ||
|
||
Since date-times are stored as numbers, they can be used for arithmetic operations in formulas. For example, it is possible to determine the difference between two dates by subtracting one serial number from the other. | ||
|
||
**Note**: A #VALUE! error is reported if a date-formatted cell contains a number less than 1 or greater than 2,958,465. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.