|
| 1 | +/* |
| 2 | + * Copyright 2024 The Android Open Source Project |
| 3 | + * |
| 4 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | + * you may not use this file except in compliance with the License. |
| 6 | + * You may obtain a copy of the License at |
| 7 | + * |
| 8 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | + * |
| 10 | + * Unless required by applicable law or agreed to in writing, software |
| 11 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | + * See the License for the specific language governing permissions and |
| 14 | + * limitations under the License. |
| 15 | + */ |
| 16 | + |
| 17 | +package androidx.compose.material3.internal |
| 18 | + |
| 19 | +import androidx.compose.material3.CalendarLocale |
| 20 | + |
| 21 | +internal actual class PlatformDateFormat actual constructor(private val locale: CalendarLocale) { |
| 22 | + |
| 23 | + actual val firstDayOfWeek: Int |
| 24 | + get() = TODO("not implemented") |
| 25 | + |
| 26 | + actual fun formatWithPattern( |
| 27 | + utcTimeMillis: Long, |
| 28 | + pattern: String, |
| 29 | + ): String { |
| 30 | + TODO("not implemented") |
| 31 | + } |
| 32 | + |
| 33 | + actual fun formatWithSkeleton( |
| 34 | + utcTimeMillis: Long, |
| 35 | + skeleton: String, |
| 36 | + ): String { |
| 37 | + TODO("not implemented") |
| 38 | + } |
| 39 | + |
| 40 | + actual fun parse( |
| 41 | + date: String, |
| 42 | + pattern: String |
| 43 | + ): CalendarDate? { |
| 44 | + TODO("not implemented") |
| 45 | + } |
| 46 | + |
| 47 | + actual fun getDateInputFormat(): DateInputFormat { |
| 48 | + TODO("not implemented") |
| 49 | + } |
| 50 | + |
| 51 | + actual val weekdayNames: List<Pair<String, String>> get() { |
| 52 | + TODO("not implemented") |
| 53 | + } |
| 54 | + |
| 55 | + // See http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_Patterns |
| 56 | + // |
| 57 | + // 'j' template requests the preferred hour format for the locale. |
| 58 | + // 'a' is a pattern for AM\PM symbol. Presence of this symbol means that locale has 12h format. |
| 59 | + actual fun is24HourFormat(): Boolean { |
| 60 | + TODO("not implemented") |
| 61 | + } |
| 62 | +} |
0 commit comments