mingyang_text 2022.8.26 → 2022.9.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/text.js +21 -1
package/package.json
CHANGED
package/text.js
CHANGED
@@ -136,15 +136,35 @@ function func_TimeID_32() {
|
|
136
136
|
}
|
137
137
|
module.exports.do_TimeID_32 = func_TimeID_32;
|
138
138
|
|
139
|
+
/**
|
140
|
+
* 返回一个36位的时间在左侧的UUID
|
141
|
+
*/
|
142
|
+
function func_TimeNo_36() {
|
143
|
+
return func_TimeID(36, "0123456789");
|
144
|
+
}
|
145
|
+
module.exports.do_TimeNo_36 = func_TimeNo_36;
|
146
|
+
|
147
|
+
/**
|
148
|
+
* 返回一个32位的时间在左侧的UUID
|
149
|
+
*/
|
150
|
+
function func_TimeNo_32() {
|
151
|
+
return func_TimeID(32, "0123456789");
|
152
|
+
}
|
153
|
+
module.exports.do_TimeNo_32 = func_TimeNo_32;
|
154
|
+
|
139
155
|
/**
|
140
156
|
* 返回一个时间在左侧的UUID
|
141
157
|
*/
|
142
|
-
function func_TimeID(args_Digit) {
|
158
|
+
function func_TimeID(args_Digit, args_PlaceHolder) {
|
143
159
|
let temp_List = new Array(args_Digit);
|
144
160
|
|
145
161
|
//let temp_PlaceHolder = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"];
|
146
162
|
let temp_PlaceHolder = "abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
147
163
|
|
164
|
+
if (args_PlaceHolder != null) {
|
165
|
+
temp_PlaceHolder = args_PlaceHolder;
|
166
|
+
}
|
167
|
+
|
148
168
|
let temp_Time = func_DateTimeToString(null, "yyyy-MMdd-HHmmss-fff");
|
149
169
|
for (let i = 0; i < temp_Time.length; i++) {
|
150
170
|
temp_List[i] = temp_Time[i];
|