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
merge 2 sorted array
Planet-D ver. 0.7
Expression Tree - Demo1
Bubble Sort
my wall
Set Get
Find smallest and largest in unsorted array
golestanali
ADSA - Tuto 1 - Exo4 - b - Proposition d'algo en O(n)
code