decova-dotnet-developer
Version:
This package provides fundumentals that a .net developer may miss while working with Typescript, whether they are missing functinalities or funcionalities provided in a non-elegant design in javascript. Bad naming, bad design of optional parameters, non-c
40 lines • 1.42 kB
TypeScript
import { DateFormat } from "./DateFormat";
import { WeekDay } from "./WeekDay";
import { TimeSpan } from "./TimeSpan";
export declare class DateTime {
private _Ticks;
get Ticks(): number;
constructor(_Ticks?: number);
ToString(): string;
get _(): string;
static get Min(): DateTime;
static get Max(): DateTime;
static get Now(): DateTime;
AsLocalToUtc(): DateTime;
AsUtcToLocal(): DateTime;
static TryParse(text: string, refResult: {
Result: DateTime;
ErrorMessage: string;
}, format?: DateFormat): boolean;
static Parse(dateTimeInText: string, format?: DateFormat): DateTime;
get Year(): number;
get Month(): number;
get DayOfMonth(): number;
get DayOfWeek(): WeekDay;
get Hour(): number;
get Minute(): number;
get Second(): number;
get MilliSecond(): number;
AddDays(daysToAdd: number): DateTime;
AddHours(hoursToAdd: number): DateTime;
AddMinutes(minutesToAdd: number): DateTime;
AddSeconds(secondsToAdd: number): DateTime;
AddMilliseconds(millisecondsToAdd: number): DateTime;
Compare(otherDateTime: DateTime): 0 | 1 | -1;
get Date(): DateTime;
SubtractDate(another: DateTime): TimeSpan;
SubtractSpan(timeSpan: TimeSpan): DateTime;
Equals(another: DateTime): boolean;
get TimeOfDay(): TimeSpan;
}
//# sourceMappingURL=DateTime.d.ts.map