Michsky – Docs Michsky – Docs
  • Home
  • Documentation
    • Reach UI
    • DreamOS
    • Modern UI Pack
    • Motion Titles Pack
    • Dark UI
    • Loading Screen Studio
  • Contact
Michsky – Docs Michsky – Docs
Michsky – Docs
  • Home
  • Documentation
    • Reach UI
    • DreamOS
    • Modern UI Pack
    • Motion Titles Pack
    • Dark UI
    • Loading Screen Studio
  • Contact

DreamOS

  • Quick Start
  • How To (FAQs)
  • UI Elements
    • Changing Content
    • DreamOS UI Elements
  • Apps & Windows
    • App Library
    • Creating New Apps
    • Deleting Apps
    • Commander
    • Mail
    • Messaging
    • Music Player
    • Notepad
    • Photo Gallery
    • Reminder
    • Settings
    • Video Player
    • Web Browser
  • Managers
    • Audio Manager
    • Boot Manager
    • Date & Time
    • Events
    • Mod Manager
    • Multi Instance Manager
    • Network Manager
    • Notification Manager
    • User Manager
    • Widget Manager
    • World Space Manager
    • Window Manager
    • Wallpaper Manager
  • Others & Add-ons
    • Steam Messaging
  1. Home
  2. Docs
  3. DreamOS
  4. Managers
  5. Date & Time
Updated on April 3, 2022

DreamOS

  • Quick Start
  • How To (FAQs)
  • UI Elements
    • Changing Content
    • DreamOS UI Elements
  • Apps & Windows
    • App Library
    • Creating New Apps
    • Deleting Apps
    • Commander
    • Mail
    • Messaging
    • Music Player
    • Notepad
    • Photo Gallery
    • Reminder
    • Settings
    • Video Player
    • Web Browser
  • Managers
    • Audio Manager
    • Boot Manager
    • Date & Time
    • Events
    • Mod Manager
    • Multi Instance Manager
    • Network Manager
    • Notification Manager
    • User Manager
    • Widget Manager
    • World Space Manager
    • Window Manager
    • Wallpaper Manager
  • Others & Add-ons
    • Steam Messaging

Date & Time

Author: admin 188 views

Workflow

A component responsible for managing the system time/date. It doesn’t require any external resources and it’s a simulated time solution. It supports timed events, changing the time speed and saving. In order to fetch the data, you can add ‘Date and Clock’ component to any UI object.

Properties

Property Type Function

timeMultiplier

float

Changes the speed of the time simulation.

saveAndGetValues

bool

Save and fetch the time data when true.

useShortClockFormat

bool

Use either 12-hour (short) or 24-hour time format.

Scripting

				
					using Michsky.DreamOS; // namespace

public GlobalTime timeManager;

void YourFunction()
{
   timeManager.currentSecond = 30f; // Change second (0-60)
   timeManager.currentMinute = 25; // Change minute (0-60)
   timeManager.currentHour = 10; // Change hour (0-24)
   timeManager.currentDay = 15; // Change day (1-30)
   timeManager.currentMonth = 6; // Change month (1-12)
   timeManager.currentYear = 2020; // Change year
   timeManager.UpdateTimeData(); // Update the stored data
   timeManager.useShortClockFormat = true; // Enable AM/PM label
}				
			

How can we help?

A premium WordPress theme with an integrated Knowledge Base,
providing 24/7 community-based support.

Content

© 2023 Michsky