Repository navigation
Commit 1784555
committed
Change epoch of TimeUnixTAI to 1970-01-01T00:00:00.0 TAI, fixes astropy#11245
* TimeUnixTAI (name unix_tai) used the epoch ``1970-01-01T00:00:00 UTC``
since its introduction in astropy 4.2, however, contrary to the
documented behaviour, this is not the definition of CLOCK_TAI on linux
and no system using this epoch is known.
* This switches the epoch to ``1970-01-01T00:00:00.0 TAI`` to match the
intended defintion of being compatible to CLOCK_TAI on linux and also
is the definition of the now obselete and already removed ``TimeUnixPTP``1 parent fad2853 commit 1784555
3 files changed
Lines changed: 32 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
381 | 381 | | |
382 | 382 | | |
383 | 383 | | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
384 | 390 | | |
385 | 391 | | |
386 | 392 | | |
| |||
410 | 416 | | |
411 | 417 | | |
412 | 418 | | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
413 | 424 | | |
414 | 425 | | |
415 | 426 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
690 | 690 | | |
691 | 691 | | |
692 | 692 | | |
693 | | - | |
| 693 | + | |
694 | 694 | | |
695 | 695 | | |
696 | 696 | | |
| |||
710 | 710 | | |
711 | 711 | | |
712 | 712 | | |
713 | | - | |
| 713 | + | |
714 | 714 | | |
715 | | - | |
716 | | - | |
717 | | - | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
718 | 724 | | |
719 | 725 | | |
720 | 726 | | |
721 | 727 | | |
722 | 728 | | |
723 | 729 | | |
724 | | - | |
725 | | - | |
| 730 | + | |
| 731 | + | |
726 | 732 | | |
727 | | - | |
728 | | - | |
| 733 | + | |
| 734 | + | |
729 | 735 | | |
| 736 | + | |
730 | 737 | | |
731 | 738 | | |
732 | 739 | | |
733 | 740 | | |
734 | 741 | | |
735 | 742 | | |
736 | 743 | | |
737 | | - | |
| 744 | + | |
738 | 745 | | |
739 | 746 | | |
740 | 747 | | |
741 | | - | |
| 748 | + | |
742 | 749 | | |
743 | 750 | | |
744 | | - | |
| 751 | + | |
745 | 752 | | |
746 | 753 | | |
747 | 754 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1448 | 1448 | | |
1449 | 1449 | | |
1450 | 1450 | | |
1451 | | - | |
| 1451 | + | |
1452 | 1452 | | |
1453 | | - | |
| 1453 | + | |
1454 | 1454 | | |
1455 | 1455 | | |
1456 | 1456 | | |
| |||
0 commit comments