Home > Working with SGWorld > DateTime (IDateTime6)

DateTime (IDateTime6)

The IDateTime interface provides you with date and time related features. It exposes control over the time and date, the time mode, and range. The interface also provides time zone settings, and controls the display of the sun. Changes made using this interface apply to the current state of the project but are not saved when the FLY file is saved. To make changes that are saved in the project, use the IProject6.Settings.

 

 

Properties

 

Current

Represents the currently used global date and time.

DisplaySun

Indicates whether to use the sun as a light source.

FixedLocalTime

Sets sunlight display on the terrain based on a specific selected time.

TimeRangeEnd

Represents the range end date and time.

TimeRangeStart

Represents the range start date and time.

TimeZoneDisplayName

A description of the currently used time zone, e.g., "(GMT-09:00) Alaska".

TimeZoneKey

A key of the used time zone, e.g., "Alaska Standard Time".

TimeZoneMode

Defines the currently used time zone.

TimeZonesXML

An XML that defines the available time zones in the operating system.

 

Methods

 

SetMode

Sets the date and time mode.