-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Date and Time Hint Text #2782
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2782 +/- ##
============================================
+ Coverage 60.85% 61.00% +0.15%
- Complexity 1160 1162 +2
============================================
Files 265 265
Lines 6149 6183 +34
Branches 858 859 +1
============================================
+ Hits 3742 3772 +30
- Misses 1921 1922 +1
- Partials 486 489 +3
|
val hint = | ||
pattern | ||
.replace("yyyy", "YYYY") // Full year | ||
.replace("yy", "YY") // Short year | ||
.replace("MMMM", "MMMM") // Full month name | ||
.replace("MMM", "MMM") // Abbreviated month name | ||
.replace("MM", "MM") // Month (two-digit numeric) | ||
.replace("M", "MM") // Single-digit month to two-digit | ||
.replace("dd", "DD") // Two-digit day | ||
.replace("d", "DD") // Single-digit day to two-digit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be replaced with toUpper()
?
timeFormat | ||
.toPattern() | ||
.replace("hh", "HH") // 12-hour format to 2-digit hour (12-hour clock) | ||
.replace("h", "HH") // 12-hour format to 2-digit hour (12-hour clock) | ||
.replace("HH", "HH") // 24-hour format | ||
.replace("mm", "MM") // Minutes (two-digit) | ||
.replace("ss", "SS") // Seconds (two-digit) | ||
.replace("a", "AM/PM") // AM/PM indication with a space |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as previous comment
Fixes #2706
@... PTAL?