Dates (Date
)
Dates are date and time instances that can be passed between JS and native.
Under the hood, conversions take place using milliseconds, so it's essentially a wrapper around numbers
.
- TypeScript
- Swift
- Kotlin
- C++
interface Image extends HybridObject {
getCreationDate(): Date
}
class HybridImage: HybridImageSpec {
func getCreationDate() -> Date
}
class HybridImage: HybridImageSpec() {
fun getCreationDate(): Instant
}
class HybridImage: public HybridImageSpec {
std::chrono::system_clock::time_point getCreationDate();
}