Skip to main content

environment.get_time

Overview

  • Returns the current in-game time (hour, minute, day). Runs locally on B1.

Metadata

FieldValue
DisplayGet Time
Categoryenvironment
AccessPublic
ScopeB1Standalone
Tags
AliasesGetTime, world.get_time

Parameters

  • This command takes no parameters.

Returns

Returns a JSON object with the following fields:

FieldTypeRequiredDescription
hourintyesCurrent hour [0-23]
minuteintyesCurrent minute [0-59]
dayintyesAbsolute in-game day index
time_scalefloatyesCurrent time scale multiplier
pausedboolyesWhether time is paused

Usage

await inzoi.cli.execute('environment.get_time');