System.DateTime extensions related to spatial or temporal relations
public static class PrepositionsExtensionsInheritance System.Object → PrepositionsExtensions
Returns a new System.DateTime with the specified hour and, optionally provided minutes, seconds, and milliseconds.
public static System.DateTime At(this System.DateTime date, int hour, int min=0, int second=0, int millisecond=0);date System.DateTime
hour System.Int32
min System.Int32
second System.Int32
millisecond System.Int32
Returns a new instance of DateTime based on the provided date where the time is set to midnight
public static System.DateTime AtMidnight(this System.DateTime date);date System.DateTime
Returns a new instance of DateTime based on the provided date where the time is set to noon
public static System.DateTime AtNoon(this System.DateTime date);date System.DateTime
Returns a new instance of DateTime based on the provided date where the year is set to the provided year
public static System.DateTime In(this System.DateTime date, int year);date System.DateTime
year System.Int32