Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Improve coding style. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | newJulianDay |
Files: | files | file ages | folders |
SHA1: |
4a5306964c2ef8d47bab90ae43e1615d |
User & Date: | mistachkin 2014-11-01 21:10:01.307 |
Context
2014-11-01
| ||
22:58 | Add more tests. Closed-Leaf check-in: 55359b6e3c user: mistachkin tags: newJulianDay | |
21:10 | Improve coding style. check-in: 4a5306964c user: mistachkin tags: newJulianDay | |
21:08 | Improve backward compatibility by throwing exceptions for Julian Day values that are out of the range supported by the DateTime class in the .NET Framework. Fix issue with millisecond accuracy. check-in: c3dc93e495 user: mistachkin tags: newJulianDay | |
Changes
Changes to System.Data.SQLite/SQLiteConvert.cs.
︙ | ︙ | |||
375 376 377 378 379 380 381 | throw new ArgumentException( "Not a supported Julian Day value."); } return (DateTime)badValue; } | | | | | | | | | | | | | | 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 | throw new ArgumentException( "Not a supported Julian Day value."); } return (DateTime)badValue; } int si; si = (int)((jd + 43200000) % 86400000); decimal sd; sd = si / 1000.0M; si = (int)sd; int millisecond = (int)((sd - si) * 1000.0M); sd -= si; int hour; hour = si / 3600; si -= hour * 3600; int minute; minute = si / 60; sd += si - minute * 60; int second = (int)sd; try { DateTime minValue = DateTime.MinValue; return new DateTime( minValue.Year, minValue.Month, minValue.Day, |
︙ | ︙ |