@formkit/tempo
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -128,7 +128,7 @@ /** | ||
*/ | ||
locale?: "en"; | ||
locale?: string; | ||
/** | ||
* Whether or not to escape literals. | ||
*/ | ||
genitive?: false; | ||
genitive?: boolean; | ||
/** | ||
@@ -210,2 +210,14 @@ * A function to filter parts. | ||
/** | ||
* Creates a date object for the input date at the given timezone. For example | ||
* `tzDate("2017-05-06T12:00", "Europe/Amsterdam")` will return a date object | ||
* for 2017-05-06T10:00:00Z since 12:00 in Amsterdam is 10:00Z. | ||
* | ||
* If given a Date object it will use local time and convert it to the given | ||
* timezone, thus "changing" the date. | ||
* @param inputDate - An iso8601 date string with no timezone | ||
* @param tz - A timezone string | ||
*/ | ||
declare function tzDate(inputDate: DateInput, tz: string): Date; | ||
/** | ||
* Gets the what day of the year a given date is. For example, August 1st is | ||
@@ -382,2 +394,2 @@ * the 213th day of the year on non-leapyears and 214th on leapyears. | ||
export { type DateInput, type FilledPart, type Format, type FormatOptions, type FormatPattern, type FormatStyle, type FormatStyleObj, type FormatToken, type NamedFormatOption, type NamedFormats, type ParseOptions, type Part, addDay, addHour, addMinute, addMonth, addSecond, addYear, ap, applyOffset, date, dayEnd, dayOfYear, dayStart, format, formatStr, fourDigitYear, iso8601, monthDays, monthEnd, monthStart, nearestDay, offset, parse, parts, range, removeOffset, sameDay, weekEnd, weekStart, yearDays }; | ||
export { type DateInput, type FilledPart, type Format, type FormatOptions, type FormatPattern, type FormatStyle, type FormatStyleObj, type FormatToken, type NamedFormatOption, type NamedFormats, type ParseOptions, type Part, addDay, addHour, addMinute, addMonth, addSecond, addYear, ap, applyOffset, date, dayEnd, dayOfYear, dayStart, format, formatStr, fourDigitYear, iso8601, monthDays, monthEnd, monthStart, nearestDay, offset, parse, parts, range, removeOffset, sameDay, tzDate, weekEnd, weekStart, yearDays }; |
{ | ||
"name": "@formkit/tempo", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "The easiest way to work with dates in JavaScript and TypeScript.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1116859
15
2296