mirror of
https://github.com/HowardHinnant/date.git
synced 2025-08-06 22:24:27 +02:00
Updated Examples and Recipes (markdown)
@@ -193,7 +193,7 @@ The next step is to find when the day started that is associated with `utc`. To
|
|||||||
|
|
||||||
Now the number of microseconds since the start of the day needs to be computed. The start of the day, `dp`, is converted back into the leap-second aware system, and subtracted from the microsecond time point: `utc`. The variable `us` is reused to hold “microseconds since midnight”. Now it is a simple computation to split this into milliseconds since midnight, and microseconds since the last millisecond.
|
Now the number of microseconds since the start of the day needs to be computed. The start of the day, `dp`, is converted back into the leap-second aware system, and subtracted from the microsecond time point: `utc`. The variable `us` is reused to hold “microseconds since midnight”. Now it is a simple computation to split this into milliseconds since midnight, and microseconds since the last millisecond.
|
||||||
|
|
||||||
<a name="delta months"></a>
|
<a name="deltamonths"></a>
|
||||||
### Difference in months between two dates
|
### Difference in months between two dates
|
||||||
(by [Howard Hinnant](https://github.com/HowardHinnant))
|
(by [Howard Hinnant](https://github.com/HowardHinnant))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user