object DateUtils
Class for helper functions for Date
- Alphabetic
- By Inheritance
- DateUtils
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- case class FormatKeywordToReplace(word: String, startIndex: Int, endIndex: Int) extends Product with Serializable
- case class TimestampFormatConversionException(reason: String) extends Exception with Product with Serializable
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val EPOCH: String
- val NOW: String
- val ONE_DAY_MICROSECONDS: Long
- val ONE_DAY_SECONDS: Long
- val ONE_SECOND_MICROSECONDS: Int
- val TODAY: String
- val TOMORROW: String
- val YESTERDAY: String
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- val conversionMap: Map[String, String]
- def currentDate(): Int
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def fetchSpecialDates(unit: DType): Map[String, () ⇒ Scalar]
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def identifySupportedFormatsToReplaceElseThrow(format: String, parseString: Boolean): ListBuffer[FormatKeywordToReplace]
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def replaceFormats(format: String, javaPatternsToReplace: ListBuffer[FormatKeywordToReplace]): String
- def specialDatesDays: Map[String, Int]
- def specialDatesMicros: Map[String, Long]
- def specialDatesSeconds: Map[String, Long]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- def tagAndGetCudfFormat(meta: RapidsMeta[_, _, _], sparkFormat: String, parseString: Boolean, inputFormat: Option[String] = None): String
-
def
toStrf(format: String, parseString: Boolean): String
This function converts a java time format string to a strf format string Supports %m,%p,%j,%d,%I,%H,%M,%S,%y,%Y,%f format specifiers.
This function converts a java time format string to a strf format string Supports %m,%p,%j,%d,%I,%H,%M,%S,%y,%Y,%f format specifiers. %d Day of the month: 01-31 %m Month of the year: 01-12 %y Year without century: 00-99c %Y Year with century: 0001-9999 %H 24-hour of the day: 00-23 %M Minute of the hour: 00-59 %S Second of the minute: 00-59 %f 6-digit microsecond: 000000-999999
reported bugs https://github.com/rapidsai/cudf/issues/4160 after the bug is fixed this method should also support "hh" -> "%I" (12 hour clock) "a" -> "%p" ('AM', 'PM') "DDD" -> "%j" (Day of the year)
- format
Java time format string
- parseString
True if we're parsing a string
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- val unsupportedCharacter: Set[Char]
- val unsupportedWord: Set[String]
- val unsupportedWordParseFromString: Set[String]
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()