-
-
Notifications
You must be signed in to change notification settings - Fork 19
OSL ‐ Time
DanimalsTCGYT edited this page Aug 4, 2024
·
3 revisions
-
.timestamp("Year/Month/Day/Hour/Minute/Second"):
- Gets a specific time value from a timestamp based on the specified component (e.g., "second" for seconds).
- Example:
1683825624878.timestamp("second")
returns24
.
-
1683825624878.timestamp("convert-date"):
- Converts a timestamp into a human-readable date and time format (e.g., "2023-05-11 18:20:24").
- Example:
1683825624878.timestamp("convert-date")
returns"2023-05-11 18:20:24"
.
-
"2023-05-11 18:20:24".timestamp("convert-timestamp"):
- Converts a human-readable date and time string into a timestamp.
- Example:
"2023-05-11 18:20:24".timestamp("convert-timestamp")
returns1683825624878
.
These commands and global time variables provide the ability to work with timestamps, convert between different date and time formats, and access various time-related values, making it convenient for managing time-related operations and data in OriginOS applications.
originOS is a web desktop gui with a self contained file system, programming languages, internet system and a whole lot of stuff an os should be able to do Use originOS here