-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathformat.js
80 lines (73 loc) · 4.15 KB
/
format.js
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/**
* The FormatCurrency function returns an expression formatted as a currency value using the currency symbol defined in the computer's control panel.
* @param {*} Expression Required. The expression to be formatted
* @param {*} NumDigAfterDec Optional. Indicates how many places to the right of the decimal are displayed. Default is -1 (the computer's regional settings are used)
* @param {*} IncLeadingDig Optional. Indicates whether or not a leading zero is displayed for fractional values:
* -2 = TristateUseDefault - Use the computer's regional settings
* -1 = TristateTrue - True
* 0 = TristateFalse - False
* @param {*} UseParForNegNum Optional. Indicates whether or not to place negative values within parentheses:
* -2 = TristateUseDefault - Use the computer's regional settings
* -1 = TristateTrue - True
* 0 = TristateFalse - False
* @param {*} GroupDig Optional. Indicates whether or not numbers are grouped using the group delimiter specified in the computer's regional settings:
* -2 = TristateUseDefault - Use the computer's regional settings
* -1 = TristateTrue - True
* 0 = TristateFalse - False
*/
export function FormatCurrency(Expression, NumDigAfterDec, IncLeadingDig, UseParForNegNum, GroupDig) {
}
/**
* The FormatDateTime function formats and returns a valid date or time expression
* @param {*} date Required. Any valid date expression (like Date() or Now())
* @param {*} format Optional. A value that specifies the date/time format to use
* Can take the following values:
* 0 = vbGeneralDate - Default. Returns date: mm/dd/yyyy and time if specified: hh:mm:ss PM/AM.
* 1 = vbLongDate - Returns date: weekday, monthname, year
* 2 = vbShortDate - Returns date: mm/dd/yyyy
* 3 = vbLongTime - Returns time: hh:mm:ss PM/AM
* 4 = vbShortTime - Return time: hh:mm
*/
export function FormatDateTime(date, format) {
}
/**
*
* @param {*} Expression Required. The expression to be formatted
* @param {*} NumDigAfterDec Optional. Indicates how many places to the right of the decimal are displayed. Default is -1 (the computer's regional settings are used)
* @param {*} IncLeadingDig Optional. Indicates whether or not a leading zero is displayed for fractional values:
* -2 = TristateUseDefault - Use the computer's regional settings
* -1 = TristateTrue - True
* 0 = TristateFalse - False
* @param {*} UseParForNegNum Optional. Indicates whether or not to place negative values within parentheses:
* -2 = TristateUseDefault - Use the computer's regional settings
* -1 = TristateTrue - True
* 0 = TristateFalse - False
* @param {*} GroupDig Optional. Indicates whether or not numbers are grouped using the group delimiter specified in the computer's regional settings:
* -2 = TristateUseDefault - Use the computer's regional settings
* -1 = TristateTrue - True
* 0 = TristateFalse - False
*/
function FormatNumber(Expression, NumDigAfterDec, IncLeadingDig, UseParForNegNum, GroupDig) {
}
/**
* The FormatPercent function returns an expression formatted as a percentage (multiplied by 100) with a trailing % character.
* @param {*} Expression Required. The expression to be formatted
* @param {*} NumDigAfterDec Optional. Indicates whether or not a leading zero is displayed for fractional values:
* -2 = TristateUseDefault - Use the computer's regional settings
* -1 = TristateTrue - True
* 0 = TristateFalse - False
* @param {*} IncLeadingDig Optional. Indicates whether or not a leading zero is displayed for fractional values:
* -2 = TristateUseDefault - Use the computer's regional settings
* -1 = TristateTrue - True
* 0 = TristateFalse - False
* @param {*} UseParForNegNum Optional. Indicates whether or not to place negative values within parentheses:
* -2 = TristateUseDefault - Use the computer's regional settings
* -1 = TristateTrue - True
* 0 = TristateFalse - False
* @param {*} GroupDig Optional. Indicates whether or not numbers are grouped using the group delimiter specified in the computer's regional settings:
* -2 = TristateUseDefault - Use the computer's regional settings
* -1 = TristateTrue - True
* 0 = TristateFalse - False
*/
function FormatPercent(Expression, NumDigAfterDec, IncLeadingDig, UseParForNegNum, GroupDig) {
}