klyn.time.Timestamp.Timestamp
constructor
public Timestamp(seconds as Double = 0.0):
Description
Constructs a Timestamp object with a given value.
import klyn.time

timestamp = Timestamp(1693459200)
print(timestamp.toString())  # Output: Timestamp(1693459200.0)
Parameters
  • value The timestamp value in seconds since the Epoch. ``` import klyn.time timestamp = Timestamp(1693459200) print(timestamp.toString()) # Output: Timestamp(1693459200.0) ```