Skip to content

System Module

STBrian edited this page Nov 9, 2026 · 1 revision

The System submodule provides access to hardware and OS runtime state of the Nintendo 3DS console.

Functions

Core.System.getTime Returns current UNIX timestamp in seconds
Core.System.get3DSliderState Returns the position of the physical 3D slider

Core.System.getTime

Returns the current UNIX time (seconds since January 1, 1970).

Core.System.getTime() -> number

Example

local timestamp = Core.System.getTime()
Core.Debug.log("Current time: " .. timestamp)

Core.System.get3DSliderState

Returns the current position of the physical 3D Depth Slider on the 3DS console, as a floating point value between 0.0 (3D off) and 1.0 (maximum 3D depth).

Core.System.get3DSliderState() -> number

Example

local depth = Core.System.get3DSliderState()
if depth > 0.0 then
    -- 3D slider is turned on
end

Clone this wiki locally