smart-react-components
Version:
React UI library, wide variety of editable ready to use Styled and React components.
37 lines (36 loc) • 922 B
TypeScript
import { DateHourObject, Value } from "../types/date-picker";
export default class DatePickerHelper {
/**
* Gets day count of the given month.
*
* @param month
* @param year
*/
static getDayCount(month: number, year: number): number;
/**
* Checks if the given year is a leap year or not.
*
* @param year
*/
static isLeapYear(year: number): boolean;
/**
* Gets decade by the given year.
*
* @param year
*/
static getDecade(year: number): number[];
/**
* Gets week days as an array.
*
* @param startDay
*/
static getWeekDays(startDay: number): number[];
/**
* Gets value as object.
*
* @param value
* @param pickerType
* @param hourType
*/
static getValueObject(value: Value, pickerType: number, hourType: number): DateHourObject;
}