(
TimeSource<?> clock,
AttributeQuery attributes
)
| 772 | //~ Methoden ------------------------------------------------------ |
| 773 | |
| 774 | @Override |
| 775 | public AnnualDate createFrom( |
| 776 | TimeSource<?> clock, |
| 777 | AttributeQuery attributes |
| 778 | ) { |
| 779 | |
| 780 | Timezone zone; |
| 781 | |
| 782 | if (attributes.contains(Attributes.TIMEZONE_ID)) { |
| 783 | zone = Timezone.of(attributes.get(Attributes.TIMEZONE_ID)); |
| 784 | } else if (attributes.get(Attributes.LENIENCY, Leniency.SMART).isLax()) { |
| 785 | zone = Timezone.ofSystem(); |
| 786 | } else { |
| 787 | return null; |
| 788 | } |
| 789 | |
| 790 | PlainDate date = Moment.from(clock.currentTime()).toZonalTimestamp(zone.getID()).toDate(); |
| 791 | return AnnualDate.of(date.getMonth(), date.getDayOfMonth()); |
| 792 | |
| 793 | } |
| 794 | |
| 795 | @Override |
| 796 | public AnnualDate createFrom( |
nothing calls this directly
no test coverage detected