Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
timeleft
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { DateTime now = new DateTime(2017, 8, 15, 23, 59, 0); DateTime start = new DateTime(2017, 8, 15, 8, 30, 0); DateTime end = new DateTime(2017, 8, 15, 20, 0, 0); if ((now > start) && (now < end)) { Console.WriteLine("Markt open"); } if (!(now > start) && (now < end)) { Console.WriteLine("Markt open today at " + start.Hour.ToString()); } if ((now > start) && !(now < end)) { Console.WriteLine("Markt open tomorrow at " + start.Hour.ToString()); } Console.WriteLine( now.ToString() + " " + start.ToString()+ " " + end.ToString()); } } }
run
|
edit
|
history
|
help
0
C# Bubble Sort
code source
Delegate & anonymous method
Formación TECOI
file hasher
Create DataBindings
gg
EMV_RESULTAT
Code_only_sin_xm
utf-8 string to bytes and back