GDScript offers support for times and durations. Here are some examples:
This script demonstrates various time-related operations in GDScript. Note that GDScript doesn’t have as extensive built-in time functionality as some other languages, so we’ve had to implement some of these operations manually.
When you run this script, it will output various time-related information and comparisons. The exact output will depend on the current time when you run the script.
Next, we’ll look at the related idea of time relative to the Unix epoch.