You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 3, 2023. It is now read-only.
Andrex edited this page Nov 19, 2022
·
6 revisions
🔧 System
⚖️ License
Copyright (c) 2022 Depth
Licensed under the Depth Liberum Modularis license.
The System class contains basic System functionality (e.g. calculation, logging, etc.)
⌨️ System.Console
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().
⏱️ System.Chronology
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.