DateTimeCellValue

class DateTimeCellValue(val year: Int, val month: Int, val day: Int, val hour: Int, val minute: Int, val second: Int = 0, val millisecond: Int = 0, val microsecond: Int = 0) : CellValue(source)

Excel does not know if this is UTC or not. Use asDateTimeLocal or asDateTimeUtc to get the LocalDateTime you prefer.

Constructors

Link copied to clipboard
constructor(year: Int, month: Int, day: Int, hour: Int, minute: Int, second: Int = 0, millisecond: Int = 0, microsecond: Int = 0)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val day: Int
Link copied to clipboard
val hour: Int
Link copied to clipboard
val microsecond: Int = 0
Link copied to clipboard
val millisecond: Int = 0
Link copied to clipboard
val minute: Int
Link copied to clipboard
val month: Int
Link copied to clipboard
val second: Int = 0
Link copied to clipboard
val year: Int

Functions

Link copied to clipboard
fun asDateTimeLocal(): LocalDateTime

Returns this value as a local LocalDateTime (no timezone conversion).

Link copied to clipboard
fun asDateTimeUtc(): LocalDateTime

Returns this value as a UTC LocalDateTime (no timezone conversion — caller must treat it as UTC).

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String