Repository navigation
Commit 9bca339
committed
Add Time#rfc3339 and Time.rfc3339
This allows easier transition of code using DateTime to using Time.
Time#rfc3339 is an alias to #xmlschema and is just for consistency.
Time.rfc3339 is similar to Time.xmlschema, but allows a space
between the date and time, while Time.xmlschema does not (it
requires a "T").
Introduce a Time._xmlschema private method so that Time.xmlschema
and Time.rfc3339 can share most of the implementation.1 parent 71dad57 commit 9bca339
2 files changed
Lines changed: 40 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
624 | 624 | | |
625 | 625 | | |
626 | 626 | | |
627 | | - | |
| 627 | + | |
628 | 628 | | |
629 | 629 | | |
630 | 630 | | |
631 | 631 | | |
632 | 632 | | |
633 | | - | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
634 | 669 | | |
635 | 670 | | |
636 | 671 | | |
| |||
656 | 691 | | |
657 | 692 | | |
658 | 693 | | |
659 | | - | |
| 694 | + | |
660 | 695 | | |
661 | 696 | | |
662 | 697 | | |
| |||
731 | 766 | | |
732 | 767 | | |
733 | 768 | | |
| 769 | + | |
734 | 770 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
574 | 574 | | |
575 | 575 | | |
576 | 576 | | |
| 577 | + | |
577 | 578 | | |
578 | 579 | | |
579 | 580 | | |
| |||
0 commit comments