DateTime
Holds a parsed date and time, with both StringType and java.util.Date representations. It is a plain, mutable holder with fluent setters; it does not implement Parcelable. ScanResults exposes a receipt's date and time directly through receiptDate(), receiptTime() and receiptDateTime().
Package: com.microblink.core
Declaration
class DateTime
Constructor:
DateTime()
Quick Reference
Properties
| Property | Description |
|---|---|
date() | The date portion as a StringType |
time() | The time portion as a StringType |
dateTime() | The combined java.util.Date |
Properties
date()
fun date(): StringType?
fun date(date: StringType?): DateTime
The date portion as a StringType (carries confidence). The setter returns self for chaining.
time()
fun time(): StringType?
fun time(time: StringType?): DateTime
The time portion as a StringType. The setter returns self for chaining.
dateTime()
fun dateTime(): Date?
fun dateTime(dateTime: Date?): DateTime
The combined date and time as a java.util.Date, or null if none was set. The setter returns self for chaining.