diff options
| author | EverythingWindows <[email protected]> | 2022-11-14 19:55:48 +0700 |
|---|---|---|
| committer | EverythingWindows <[email protected]> | 2022-11-14 19:55:48 +0700 |
| commit | 52674dbd4d03161aba9cadb68f09b69fd71b8ecb (patch) | |
| tree | afe00cdce077273fbe537f973696e3f3c84299e7 /ShiftOS-TheRevival/Terminal Applications/Internal/Com_Time.vb | |
| parent | 75ae158b14df32ef41cebfce664dc5d0c50104f3 (diff) | |
| download | shiftos-therevival-old-52674dbd4d03161aba9cadb68f09b69fd71b8ecb.tar.gz shiftos-therevival-old-52674dbd4d03161aba9cadb68f09b69fd71b8ecb.tar.bz2 shiftos-therevival-old-52674dbd4d03161aba9cadb68f09b69fd71b8ecb.zip | |
All one-way commands are not separated into each own module
Diffstat (limited to 'ShiftOS-TheRevival/Terminal Applications/Internal/Com_Time.vb')
| -rw-r--r-- | ShiftOS-TheRevival/Terminal Applications/Internal/Com_Time.vb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/ShiftOS-TheRevival/Terminal Applications/Internal/Com_Time.vb b/ShiftOS-TheRevival/Terminal Applications/Internal/Com_Time.vb new file mode 100644 index 0000000..17cc2b3 --- /dev/null +++ b/ShiftOS-TheRevival/Terminal Applications/Internal/Com_Time.vb @@ -0,0 +1,25 @@ +Module Com_Time + Public Sub Terminal_Time() + If Strings.AvailableFeature(5) = 1 Then + NewLine(Math.Floor(Date.Now.Subtract(Date.Today).TotalSeconds) & " seconds passed since midnight") + ElseIf Strings.AvailableFeature(5) = 3 Then + If Strings.AvailableFeature(6) = 1 Then + NewLine(Math.Floor(Date.Now.Subtract(Date.Today).TotalMinutes) & " minutes passed since midnight") + ElseIf Strings.AvailableFeature(6) = 3 Then + If Strings.AvailableFeature(7) = 1 Then + NewLine(Math.Floor(Date.Now.Subtract(Date.Today).TotalHours) & " hours passed since midnight") + ElseIf Strings.AvailableFeature(7) = 3 Then + If Strings.AvailableFeature(12) = 1 Then + If Date.Now.Hour < 12 Then + NewLine("The time is " & TimeOfDay.Hour & " AM") + Else + NewLine("The time is " & TimeOfDay.Hour - 12 & " PM") + End If + ElseIf Strings.AvailableFeature(23) = 1 Then + NewLine("The time is " & TimeOfDay.Hour & ":" & TimeOfDay.Minute) + End If + End If + End If + End If + End Sub +End Module |
