We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd596d4 commit 072c619Copy full SHA for 072c619
sql/src/main/scala/app/softnetwork/elastic/sql/function/time/package.scala
@@ -345,16 +345,24 @@ package object time {
345
"%d" -> "dd",
346
"%e" -> "d",
347
"%H" -> "HH",
348
+ "%k" -> "H",
349
"%h" -> "hh",
350
"%I" -> "hh",
351
+ "%l" -> "h",
352
"%i" -> "mm",
353
"%s" -> "ss",
354
+ "%S" -> "ss",
355
"%f" -> "SSS", // microseconds
356
"%p" -> "a",
357
"%W" -> "EEEE",
358
"%a" -> "EEE",
359
"%M" -> "MMMM",
- "%b" -> "MMM"
360
+ "%b" -> "MMM",
361
+ "%T" -> "HH:mm:ss",
362
+ "%r" -> "hh:mm:ss a",
363
+ "%j" -> "DDD",
364
+ "%x" -> "YY",
365
+ "%X" -> "YYYY"
366
)
367
368
def convert(includeTimeZone: Boolean = false): String = {
0 commit comments