mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 15:57:13 +00:00
Merge pull request #32339 from koenwoortman/luxon_seconds
Add fromSeconds and toSeconds definitions to luxon
This commit is contained in:
Vendored
+2
@@ -145,6 +145,7 @@ declare module 'luxon' {
|
||||
text: string,
|
||||
options?: DateTimeOptions
|
||||
): DateTime;
|
||||
static fromSeconds(seconds: number, options?: DateTimeOptions): DateTime;
|
||||
static fromSQL(text: string, options?: DateTimeOptions): DateTime;
|
||||
static fromFormat(
|
||||
text: string,
|
||||
@@ -263,6 +264,7 @@ declare module 'luxon' {
|
||||
toRelative(options?: ToRelativeOptions): string | null;
|
||||
toRelativeCalendar(options?: ToRelativeCalendarOptions): string | null;
|
||||
toRFC2822(): string;
|
||||
toSeconds(): number;
|
||||
toSQL(options?: ToSQLOptions): string;
|
||||
toSQLDate(): string;
|
||||
toSQLTime(options?: ToSQLOptions): string;
|
||||
|
||||
@@ -39,6 +39,7 @@ dt.toLocaleString();
|
||||
dt.toLocaleString(DateTime.DATE_MED);
|
||||
dt.toISO();
|
||||
dt.toISO({includeOffset: true});
|
||||
dt.toSeconds();
|
||||
dt.toSQL();
|
||||
dt.toSQL({includeOffset: false, includeZone: true});
|
||||
dt.toSQLDate();
|
||||
|
||||
Reference in New Issue
Block a user