(property: string)
| 923 | } |
| 924 | |
| 925 | public get(property: string): unknown { |
| 926 | switch (property) { |
| 927 | case "year": |
| 928 | return this.year; |
| 929 | case "month": |
| 930 | return this.month; |
| 931 | case "day": |
| 932 | return this.day; |
| 933 | case "week": |
| 934 | return this.week; |
| 935 | case "dayOfWeek": |
| 936 | return this.dayOfWeek; |
| 937 | case "quarter": |
| 938 | return this.quarter; |
| 939 | case "ordinalDay": |
| 940 | return this.ordinalDay; |
| 941 | case "hour": |
| 942 | return this.hour; |
| 943 | case "minute": |
| 944 | return this.minute; |
| 945 | case "second": |
| 946 | return this.second; |
| 947 | case "millisecond": |
| 948 | return this.millisecond; |
| 949 | case "microsecond": |
| 950 | return this.microsecond; |
| 951 | case "nanosecond": |
| 952 | return this.nanosecond; |
| 953 | case "offset": |
| 954 | return this.offset; |
| 955 | case "offsetMinutes": |
| 956 | return this.offsetMinutes; |
| 957 | case "timezone": |
| 958 | return this.timezone; |
| 959 | case "epochSeconds": |
| 960 | return this.epochSeconds; |
| 961 | case "epochMillis": |
| 962 | return this.epochMillis; |
| 963 | default: |
| 964 | return null; |
| 965 | } |
| 966 | } |
| 967 | |
| 968 | /** |
| 969 | * Format timezone offset as +HH:MM or -HH:MM. |
nothing calls this directly
no outgoing calls
no test coverage detected