-
-
Notifications
You must be signed in to change notification settings - Fork 2
Classes.System
Copyright (c) 2022 Depth
Licensed under the Depth Liberum Modularis license.
The System class contains basic System functionality (e.g. calculation, logging, etc.)
The System.Console
module contains variables and functions to-do with logging.
You can call System.Console.WriteLine(YourLog)
to print a new line of custom log. For more well-sorted and standard logging, use System.Console.Advanced.WriteLine("Information", System.Chronology.Time(), YourLog)
. System.Console.Enabled
is a boolean value that is partially immutable and will return the current state of the logger - enabled/disabled (true/false). To enable/disable the logger, use System.Console.Enable()
or System.Console.Disable()
.
The System.Chronology
module contains functions to-do with the time and date.
You can call System.Chronology.Time(
Local/UCT)
to get the time (24 hr) in a specific time zone. If you input nothing, a time zone will be set to UCT.
You can also use System.Chronology.Date(TimeZone)
(always Gregorian), System.Chronology.TimeStamp(TimeZone)
or System.Chronology.TimeSinceEpoch()
(this is system-calculated) appropriately for your use case.
Still looking for more? Give us a message on the Issues tab.