Skip to content

Commit

Permalink
fix(ui): [Timestamp] missing export on "isLeapYear"
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkeye64 committed Feb 2, 2025
1 parent 41bfc6f commit 27c82a9
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/ui/src/utils/Timestamp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export function padNumber(x: number, length: number): string {
* @param {number} year The year to check (ie: 1999, 2020)
* @returns {boolean} True if the year is a leap year
*/
function isLeapYear(year: number): boolean {
export function isLeapYear(year: number): boolean {
// A year is a Gregorian leap year if it is divisible by 4,
// but not by 100, unless it is also divisible by 400.
return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0
Expand Down Expand Up @@ -1122,12 +1122,6 @@ export function makeDateTime(timestamp: Timestamp, utc = true): Date {
)
}

// validate a number IS a number
/**
* Teting is passed value is a number
* @param {(string|number)} input The value to use
* @returns {boolean} True if a number (not floating point)
*/
/**
* Validates if the input is a finite number.
*
Expand Down

0 comments on commit 27c82a9

Please sign in to comment.