Skip to content
Flint
Dokumentation

time

modulPaperVelocity

Clock, dates and durations.

import time

Funktioner 10

Current time in seconds since 1970 (Unix time).

Current time in milliseconds since 1970.

Seconds elapsed since a time.now() value.

Formats a time (default now), e.g. time.format("yyyy-MM-dd HH:mm").

Today's date as yyyy-MM-dd.

A duration of n game ticks.

A duration of n seconds.

A duration of n minutes.

A duration of n hours.

Human readable length, e.g. "1h 5m 3s".