aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS-TheRevival/TerminalApplications/Internal/Com_Date.vb
diff options
context:
space:
mode:
authorEverythingWindows <[email protected]>2022-11-16 08:28:22 +0700
committerEverythingWindows <[email protected]>2022-11-16 08:28:22 +0700
commit415ee1e40d41886cb7ccf23ee004c7fa67dd7418 (patch)
tree83a2224b490de0421e8f00b000f014a81a34acb3 /ShiftOS-TheRevival/TerminalApplications/Internal/Com_Date.vb
parent5aceb7cf1efbfa21ab6a56e2e0cde13774217f97 (diff)
downloadshiftos-therevival-old-415ee1e40d41886cb7ccf23ee004c7fa67dd7418.tar.gz
shiftos-therevival-old-415ee1e40d41886cb7ccf23ee004c7fa67dd7418.tar.bz2
shiftos-therevival-old-415ee1e40d41886cb7ccf23ee004c7fa67dd7418.zip
More enhanced code management and DesktopEnvironment experiments
Diffstat (limited to 'ShiftOS-TheRevival/TerminalApplications/Internal/Com_Date.vb')
-rw-r--r--ShiftOS-TheRevival/TerminalApplications/Internal/Com_Date.vb40
1 files changed, 40 insertions, 0 deletions
diff --git a/ShiftOS-TheRevival/TerminalApplications/Internal/Com_Date.vb b/ShiftOS-TheRevival/TerminalApplications/Internal/Com_Date.vb
new file mode 100644
index 0000000..81f0822
--- /dev/null
+++ b/ShiftOS-TheRevival/TerminalApplications/Internal/Com_Date.vb
@@ -0,0 +1,40 @@
+Module Com_Date
+ Public Sub Terminal_Date()
+ If Strings.AvailableFeature(24) = 1 Then
+ NewLine("The date is " & Date.Now.DayOfYear & " days since the first day of the year")
+ AdvancedCommand = False
+ Console.BadCommand = False
+ ElseIf Strings.AvailableFeature(24) = 3 Then
+ If Strings.AvailableFeature(25) = 1 Then
+ Dim TheWeek As String = Date.Now.DayOfYear / 7
+ NewLine("The date is " & TheWeek.Substring(0, 2) & " weeks since the first week of the year")
+ AdvancedCommand = False
+ Console.BadCommand = False
+ ElseIf Strings.AvailableFeature(25) = 3 Then
+ If Strings.AvailableFeature(26) = 1 Then
+ NewLine("The date is " & Date.Now.Month & " months since the first month of the year")
+ AdvancedCommand = False
+ Console.BadCommand = False
+ ElseIf Strings.AvailableFeature(26) = 3 Then
+ If Strings.AvailableFeature(27) = 1 Then
+ NewLine("The year is " & Date.Now.Year)
+ AdvancedCommand = False
+ Console.BadCommand = False
+ ElseIf Strings.AvailableFeature(27) = 3 Then
+ If Strings.AvailableFeature(28) = 1 Then
+ NewLine("The date is " & Date.Now.Day & "/" & Date.Now.Month)
+ AdvancedCommand = False
+ Console.BadCommand = False
+ ElseIf Strings.AvailableFeature(28) = 3 Then
+ If Strings.AvailableFeature(29) = 1 Then
+ NewLine("The date is " & Date.Now.Day & "/" & Date.Now.Month & "/" & Date.Now.Year)
+ AdvancedCommand = False
+ Console.BadCommand = False
+ End If
+ End If
+ End If
+ End If
+ End If
+ End If
+ End Sub
+End Module