Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
DateTime and TimeSpan comparisons
//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) { //Your code goes here String now = DateTime.Now.TimeOfDay.ToString(); Console.WriteLine(now); DateTime next = Convert.ToDateTime("07:00:00"); Console.WriteLine(next); Console.WriteLine(next.DayOfWeek); Console.WriteLine(TimeSpan.Compare(DateTime.Now.TimeOfDay, next.TimeOfDay)); } } }
run
|
edit
|
history
|
help
0
s 3
C Triangle
Two lines of Random number
Returning the number of 1s in the binary representation of an unsigned integer
Aggregate Exception
ProWIN2
eryjuyhtgrfesdsadcfg
Range List for C#
Symantic check for object type variables
simple hello world