-
Notifications
You must be signed in to change notification settings - Fork 59
/
Copy pathindex.d.ts
57 lines (57 loc) · 2.18 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
declare const _default: {
/**
* Add / Subtract input days to current time and return in input format
* Pass date format which is required
* Pass days to add or subtract
* For subtracting send negative value
* @param format : (Needed date format (YYYY-MM-DD HH:mm:ss))
* @param daysToAdd : (Number of days to add)
* @returns {string}
*
* Days: DD
* Month: MM
* Year: YYYY
* Hour: HH
* Minute: mm
* Seconds: ss
* Day: dddd
*/
getNextOrPrevDateCustomFormat(format: string, daysToAdd: number): string;
/**
* Add / Subtract input minute to current time and return in input format
* Pass date format which is required
* Pass minutes to add or subtract
* For subtracting send negative value
* @param format (Needed date format)
* @param minutesToAdd (Needed minutes to add or subtract)
* @returns {string}
*/
getNextOrPrevMinuteDateCustomFormat(format: string, minutesToAdd: number): string;
/**
* Add / Subtract input second to current time and return in input format
* Pass date format which is required
* Pass seconds to add or subtract
* For subtracting send negative value
* @param format (Needed date format)
* @param secondsToAdd (Needed seconds to add or subtract)
* @returns {string}
*/
getNextOrPrevSecondDateCustomFormat(format: string, secondsToAdd: number): string;
/**
* Convert input date and format to required date format
* @param date (Input date)
* @param currentFormat (Input date format)
* @param newFormat (Output/Needed date format)
* @returns {string} (Returns input date with new input format)
*
*/
customSourceDateFormatToCustomNewDateFormat(date: string | Date, currentFormat: string, newFormat: string): string;
/**
* Get Timestamp from input date and input date format (Converting input date ti timestamp in milliseconds)
* @param date (input date)
* @param currentFormat (input date format)
* @returns {number} (returns time in milliseconds)
*/
getTimeStampFromCurrentDateFormat(date: string | Date, currentFormat: string): number;
};
export = _default;