@cloudbase/cals 0.5.13-alpha.11 → 0.5.13-alpha.13
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.
|
@@ -247,7 +247,7 @@ function getUserInfo(): CurrentUserInfo;
|
|
|
247
247
|
* 登录用户信息
|
|
248
248
|
*
|
|
249
249
|
* @privateForWeDa
|
|
250
|
-
* {"group": "globalVar", "displayType": "object", "displayName": "登录用户信息", "schema": {"type":"object","properties":{"userId":{"type":"string","title":"用户 ID"},"phone":{"type":"string","title":"手机"},"type":{"type":"number","title":"用户类型"},"relatedRoles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","title":"角色 ID"},"envId":{"type":"string","title":"环境 ID"},"name":{"type":"string","title":"角色名称"},"roleIdentity":{"type":"string","title":"角色标识"}}},"title":"用户关联角色"},"openId":{"type":"string","title":"微信/企微 openId"},"name":{"type":"string","title":"用户名称"},"nickName":{"type":"string","title":"用户昵称"},"email":{"type":"string","title":"邮箱"},"mainOrg":{"type":"object","properties":{"id":{"type":"string","title":"主岗部门 ID"},"name":{"type":"string","title":"主岗部门名称"}},"title":"主岗部门"},"orgs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","title":"兼岗部门 ID"},"name":{"type":"string","title":"兼岗部门名称"}}},"title":"兼岗部门"}}}}
|
|
250
|
+
* {"group": "globalVar", "displayType": "object", "displayName": "登录用户信息", "schema": {"type":"object","properties":{"userId":{"type":"string","title":"用户 ID"},"phone":{"type":"string","title":"手机"},"type":{"type":"number","title":"用户类型"},"relatedRoles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","title":"角色 ID"},"envId":{"type":"string","title":"环境 ID"},"name":{"type":"string","title":"角色名称"},"roleIdentity":{"type":"string","title":"角色标识"}}},"title":"用户关联角色"},"openId":{"type":"string","title":"微信/企微 openId"},"name":{"type":"string","title":"用户名称"},"nickName":{"type":"string","title":"用户昵称"},"email":{"type":"string","title":"邮箱"},"mainOrg":{"type":"object","properties":{"id":{"type":"string","title":"主岗部门 ID"},"name":{"type":"string","title":"主岗部门名称"}},"title":"主岗部门"},"orgs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","title":"兼岗部门 ID"},"name":{"type":"string","title":"兼岗部门名称"}}},"title":"兼岗部门"}}}, "doc": "https://docs.cloudbase.net/lowcode/framework/app/app#authgetuserinfoauthcurrentuser"}
|
|
251
251
|
*/
|
|
252
252
|
const currentUser: CurrentUserInfo;
|
|
253
253
|
|
|
@@ -450,7 +450,7 @@ function navigateBack(options: navigateBackOptions);
|
|
|
450
450
|
* 计算传入数字的绝对值
|
|
451
451
|
*
|
|
452
452
|
* @privateForWeDa
|
|
453
|
-
* {"group": "formula", "displayType": "function", "displayName": "绝对值", "insertText": "ABS(1)", "subGroup": "calculation"}
|
|
453
|
+
* {"group": "formula", "displayType": "function", "displayName": "绝对值", "insertText": "ABS(1)", "subGroup": "calculation", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "计算传入数字的绝对值" , "definition": "ABS(数字):数字"}
|
|
454
454
|
*/
|
|
455
455
|
function ABS(num: number): number;
|
|
456
456
|
/**
|
|
@@ -460,7 +460,7 @@ function navigateBack(options: navigateBackOptions);
|
|
|
460
460
|
* 返回一组数字中的最小值
|
|
461
461
|
*
|
|
462
462
|
* @privateForWeDa
|
|
463
|
-
* {"group": "formula", "displayType": "function", "displayName": "最小值", "insertText": "Min(1, 2)", "subGroup": "calculation"}
|
|
463
|
+
* {"group": "formula", "displayType": "function", "displayName": "最小值", "insertText": "Min(1, 2)", "subGroup": "calculation", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回一组数字中的最小值" , "definition": "Min(数字1, [数字2, ...]):数字"}
|
|
464
464
|
*/
|
|
465
465
|
function Min(...args: number[]): number;
|
|
466
466
|
/**
|
|
@@ -470,7 +470,7 @@ function navigateBack(options: navigateBackOptions);
|
|
|
470
470
|
* 返回一组数字中的最大值
|
|
471
471
|
*
|
|
472
472
|
* @privateForWeDa
|
|
473
|
-
* {"group": "formula", "displayType": "function", "displayName": "最大值", "insertText": "Max(1, 2)", "subGroup": "calculation"}
|
|
473
|
+
* {"group": "formula", "displayType": "function", "displayName": "最大值", "insertText": "Max(1, 2)", "subGroup": "calculation", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回一组数字中的最大值" , "definition": "Max(数字1, [数字2, ...]):数字"}
|
|
474
474
|
*/
|
|
475
475
|
function Max(...args: number[]): number;
|
|
476
476
|
/**
|
|
@@ -480,7 +480,7 @@ function navigateBack(options: navigateBackOptions);
|
|
|
480
480
|
* 返回一组数字中的平均值
|
|
481
481
|
*
|
|
482
482
|
* @privateForWeDa
|
|
483
|
-
* {"group": "formula", "displayType": "function", "displayName": "平均值", "insertText": "Average(1, 2)", "subGroup": "calculation"}
|
|
483
|
+
* {"group": "formula", "displayType": "function", "displayName": "平均值", "insertText": "Average(1, 2)", "subGroup": "calculation", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回一组数字中的平均值" , "definition": "Average(数字1, [数字2, ...]):数字"}
|
|
484
484
|
*/
|
|
485
485
|
function Average(...args: number[]): number;
|
|
486
486
|
/**
|
|
@@ -490,7 +490,7 @@ function navigateBack(options: navigateBackOptions);
|
|
|
490
490
|
* 返回传入数字向下取整的结果
|
|
491
491
|
*
|
|
492
492
|
* @privateForWeDa
|
|
493
|
-
* {"group": "formula", "displayType": "function", "displayName": "向下取整", "insertText": "Floor(1)", "subGroup": "calculation"}
|
|
493
|
+
* {"group": "formula", "displayType": "function", "displayName": "向下取整", "insertText": "Floor(1)", "subGroup": "calculation", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回传入数字向下取整的结果" , "definition": "Floor(数字):数字"}
|
|
494
494
|
*/
|
|
495
495
|
function Floor(num: number): number;
|
|
496
496
|
/**
|
|
@@ -500,7 +500,7 @@ function navigateBack(options: navigateBackOptions);
|
|
|
500
500
|
* 返回传入数字向上取整的结果
|
|
501
501
|
*
|
|
502
502
|
* @privateForWeDa
|
|
503
|
-
* {"group": "formula", "displayType": "function", "displayName": "向上取整", "insertText": "Ceiling(1)", "subGroup": "calculation"}
|
|
503
|
+
* {"group": "formula", "displayType": "function", "displayName": "向上取整", "insertText": "Ceiling(1)", "subGroup": "calculation", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回传入数字向上取整的结果" , "definition": "Ceiling(数字):数字"}
|
|
504
504
|
*/
|
|
505
505
|
function Ceiling(num: number): number;
|
|
506
506
|
/**
|
|
@@ -510,7 +510,7 @@ function navigateBack(options: navigateBackOptions);
|
|
|
510
510
|
* 返回传入数字四舍五入后的结果
|
|
511
511
|
*
|
|
512
512
|
* @privateForWeDa
|
|
513
|
-
* {"group": "formula", "displayType": "function", "displayName": "四舍五入", "insertText": "Round(1)", "subGroup": "calculation"}
|
|
513
|
+
* {"group": "formula", "displayType": "function", "displayName": "四舍五入", "insertText": "Round(1)", "subGroup": "calculation", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回传入数字四舍五入后的结果" , "definition": "Round(数字):数字"}
|
|
514
514
|
*/
|
|
515
515
|
function Round(num: number): number;
|
|
516
516
|
/**
|
|
@@ -520,7 +520,7 @@ function navigateBack(options: navigateBackOptions);
|
|
|
520
520
|
* 返回一组数字中的和
|
|
521
521
|
*
|
|
522
522
|
* @privateForWeDa
|
|
523
|
-
* {"group": "formula", "displayType": "function", "displayName": "求和", "insertText": "Sum(1, 2)", "subGroup": "calculation"}
|
|
523
|
+
* {"group": "formula", "displayType": "function", "displayName": "求和", "insertText": "Sum(1, 2)", "subGroup": "calculation", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回一组数字中的和" , "definition": "Sum(数字1, [数字2, ...]):数字"}
|
|
524
524
|
*/
|
|
525
525
|
function Sum(...args: number[]): number;
|
|
526
526
|
/**
|
|
@@ -530,7 +530,7 @@ function navigateBack(options: navigateBackOptions);
|
|
|
530
530
|
* 返回一个指定范围的伪随机数,例如 Rand(10),返回一个范围在 10 以内的随机数
|
|
531
531
|
*
|
|
532
532
|
* @privateForWeDa
|
|
533
|
-
* {"group": "formula", "displayType": "function", "displayName": "随机数", "insertText": "Rand(1)", "subGroup": "calculation"}
|
|
533
|
+
* {"group": "formula", "displayType": "function", "displayName": "随机数", "insertText": "Rand(1)", "subGroup": "calculation", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回一个指定范围的伪随机数,例如 Rand(10),返回一个范围在 10 以内的随机数" , "definition": "Rand(数字):数字"}
|
|
534
534
|
*/
|
|
535
535
|
function Rand(num: number): number;
|
|
536
536
|
|
|
@@ -546,7 +546,7 @@ alternate?: any;
|
|
|
546
546
|
* 按判断条件进行逻辑比较,满足时返回一个值,不满足时返回另一个值。
|
|
547
547
|
*
|
|
548
548
|
* @privateForWeDa
|
|
549
|
-
* {"group": "formula", "displayType": "function", "displayName": "条件分支", "insertText": "If(true, '您好', 'hello')", "subGroup": "logic"}
|
|
549
|
+
* {"group": "formula", "displayType": "function", "displayName": "条件分支", "insertText": "If(true, '您好', 'hello')", "subGroup": "logic", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "按判断条件进行逻辑比较,满足时返回一个值,不满足时返回另一个值。" , "definition": "If(判断条件, 满足时返回的值, 不满足时返回的值):任何类型"}
|
|
550
550
|
*/
|
|
551
551
|
function If(data: IIfObjectParam): any;
|
|
552
552
|
function If(condition: boolean, consequent?: any, alternate?: any): any;
|
|
@@ -557,7 +557,7 @@ alternate?: any;
|
|
|
557
557
|
* 判断传入的文本是否为空
|
|
558
558
|
*
|
|
559
559
|
* @privateForWeDa
|
|
560
|
-
* {"group": "formula", "displayType": "function", "displayName": "是否为空", "insertText": "IsEmpty('hello')", "subGroup": "logic"}
|
|
560
|
+
* {"group": "formula", "displayType": "function", "displayName": "是否为空", "insertText": "IsEmpty('hello')", "subGroup": "logic", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "判断传入的文本是否为空" , "definition": "IsEmpty(值):布尔值"}
|
|
561
561
|
*/
|
|
562
562
|
function IsEmpty(text: string | string[]): boolean;
|
|
563
563
|
/**
|
|
@@ -567,7 +567,7 @@ alternate?: any;
|
|
|
567
567
|
* 判断传入的字段值是否包含数据,即不为 NULL
|
|
568
568
|
*
|
|
569
569
|
* @privateForWeDa
|
|
570
|
-
* {"group": "formula", "displayType": "function", "displayName": "是否为null", "insertText": "NotNull(null)", "subGroup": "logic"}
|
|
570
|
+
* {"group": "formula", "displayType": "function", "displayName": "是否为null", "insertText": "NotNull(null)", "subGroup": "logic", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "判断传入的字段值是否包含数据,即不为 NULL" , "definition": "NotNull(字段):布尔值"}
|
|
571
571
|
*/
|
|
572
572
|
function NotNull(val: any): boolean;
|
|
573
573
|
/**
|
|
@@ -577,7 +577,7 @@ alternate?: any;
|
|
|
577
577
|
* 用于确定所有判断条件是否为真
|
|
578
578
|
*
|
|
579
579
|
* @privateForWeDa
|
|
580
|
-
* {"group": "formula", "displayType": "function", "displayName": "与", "insertText": "And(true, false)", "subGroup": "logic"}
|
|
580
|
+
* {"group": "formula", "displayType": "function", "displayName": "与", "insertText": "And(true, false)", "subGroup": "logic", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "用于确定所有判断条件是否为真" , "definition": "And(判断条件1, [判断条件2,...]):布尔值"}
|
|
581
581
|
*/
|
|
582
582
|
function And(...args: boolean[]): boolean;
|
|
583
583
|
/**
|
|
@@ -587,7 +587,7 @@ alternate?: any;
|
|
|
587
587
|
* 任意一个判断条件为真,则结果为真;所有条件为否,结果才为否
|
|
588
588
|
*
|
|
589
589
|
* @privateForWeDa
|
|
590
|
-
* {"group": "formula", "displayType": "function", "displayName": "或", "insertText": "Or(true, false)", "subGroup": "logic"}
|
|
590
|
+
* {"group": "formula", "displayType": "function", "displayName": "或", "insertText": "Or(true, false)", "subGroup": "logic", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "任意一个判断条件为真,则结果为真;所有条件为否,结果才为否" , "definition": "Or(判断条件1, [判断条件2,...]):布尔值"}
|
|
591
591
|
*/
|
|
592
592
|
function Or(...args: boolean[]): boolean;
|
|
593
593
|
|
|
@@ -598,7 +598,7 @@ alternate?: any;
|
|
|
598
598
|
* 获取传入文本的字符数
|
|
599
599
|
*
|
|
600
600
|
* @privateForWeDa
|
|
601
|
-
* {"group": "formula", "displayType": "function", "displayName": "获取文本长度", "insertText": "Len('文本')", "subGroup": "text"}
|
|
601
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取文本长度", "insertText": "Len('文本')", "subGroup": "text", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "获取传入文本的字符数" , "definition": "Len(文本):数字"}
|
|
602
602
|
*/
|
|
603
603
|
function Len(text: string): number;
|
|
604
604
|
/**
|
|
@@ -608,7 +608,7 @@ alternate?: any;
|
|
|
608
608
|
* 判断文本 1 是否包含文本 2
|
|
609
609
|
*
|
|
610
610
|
* @privateForWeDa
|
|
611
|
-
* {"group": "formula", "displayType": "function", "displayName": "是否包含指定文本", "insertText": "Contains('文本1', '文本2')", "subGroup": "text"}
|
|
611
|
+
* {"group": "formula", "displayType": "function", "displayName": "是否包含指定文本", "insertText": "Contains('文本1', '文本2')", "subGroup": "text", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "判断文本 1 是否包含文本 2" , "definition": "Contains(文本1, 文本2):布尔值"}
|
|
612
612
|
*/
|
|
613
613
|
function Contains(text1: string, text2: string): boolean;
|
|
614
614
|
/**
|
|
@@ -618,7 +618,7 @@ alternate?: any;
|
|
|
618
618
|
* 根据传入的文本 2,将文本 1 拆分成文本数组,例如 Split("张三,李四,王五", ",")
|
|
619
619
|
*
|
|
620
620
|
* @privateForWeDa
|
|
621
|
-
* {"group": "formula", "displayType": "function", "displayName": "拆分文本", "insertText": "Split('文本1', '文本2')", "subGroup": "text"}
|
|
621
|
+
* {"group": "formula", "displayType": "function", "displayName": "拆分文本", "insertText": "Split('文本1', '文本2')", "subGroup": "text", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据传入的文本 2,将文本 1 拆分成文本数组,例如 Split('张三,李四,王五', ',')" , "definition": "Split(文本1,文本2):文本数组"}
|
|
622
622
|
*/
|
|
623
623
|
function Split(text1: string, text2: string): string[];
|
|
624
624
|
/**
|
|
@@ -628,7 +628,7 @@ alternate?: any;
|
|
|
628
628
|
* 删除文本开头和结尾的所有空格和制表符,文本中间的空格和制表符不会删除
|
|
629
629
|
*
|
|
630
630
|
* @privateForWeDa
|
|
631
|
-
* {"group": "formula", "displayType": "function", "displayName": "删除开头/结尾空格和制表符", "insertText": "Trim('文本')", "subGroup": "text"}
|
|
631
|
+
* {"group": "formula", "displayType": "function", "displayName": "删除开头/结尾空格和制表符", "insertText": "Trim('文本')", "subGroup": "text", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "删除文本开头和结尾的所有空格和制表符,文本中间的空格和制表符不会删除" , "definition": "Trim(文本):文本"}
|
|
632
632
|
*/
|
|
633
633
|
function Trim(text: string): string;
|
|
634
634
|
/**
|
|
@@ -638,7 +638,7 @@ alternate?: any;
|
|
|
638
638
|
* 将传入的文本转为全大写文本
|
|
639
639
|
*
|
|
640
640
|
* @privateForWeDa
|
|
641
|
-
* {"group": "formula", "displayType": "function", "displayName": "转换为大写", "insertText": "Upper('文本')", "subGroup": "text"}
|
|
641
|
+
* {"group": "formula", "displayType": "function", "displayName": "转换为大写", "insertText": "Upper('文本')", "subGroup": "text", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "将传入的文本转为全大写文本" , "definition": "Upper(文本):文本"}
|
|
642
642
|
*/
|
|
643
643
|
function Upper(text: string): string;
|
|
644
644
|
/**
|
|
@@ -648,7 +648,7 @@ alternate?: any;
|
|
|
648
648
|
* 将传入的文本转为全小写文本
|
|
649
649
|
*
|
|
650
650
|
* @privateForWeDa
|
|
651
|
-
* {"group": "formula", "displayType": "function", "displayName": "转换为小写", "insertText": "Lower('文本')", "subGroup": "text"}
|
|
651
|
+
* {"group": "formula", "displayType": "function", "displayName": "转换为小写", "insertText": "Lower('文本')", "subGroup": "text", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "将传入的文本转为全小写文本" , "definition": "Lower(文本):文本"}
|
|
652
652
|
*/
|
|
653
653
|
function Lower(text: string): string;
|
|
654
654
|
/**
|
|
@@ -658,7 +658,7 @@ alternate?: any;
|
|
|
658
658
|
* 返回多个文本拼接后的新文本
|
|
659
659
|
*
|
|
660
660
|
* @privateForWeDa
|
|
661
|
-
* {"group": "formula", "displayType": "function", "displayName": "文本拼接", "insertText": "Concat('文本1', '文本2')", "subGroup": "text"}
|
|
661
|
+
* {"group": "formula", "displayType": "function", "displayName": "文本拼接", "insertText": "Concat('文本1', '文本2')", "subGroup": "text", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回多个文本拼接后的新文本" , "definition": "Concat(文本1, [文本2,...]):文本"}
|
|
662
662
|
*/
|
|
663
663
|
function Concat(...text: string[]): string;
|
|
664
664
|
|
|
@@ -669,7 +669,7 @@ alternate?: any;
|
|
|
669
669
|
* 返回当前系统时间,通常与其他日期时间函数搭配使用
|
|
670
670
|
*
|
|
671
671
|
* @privateForWeDa
|
|
672
|
-
* {"group": "formula", "displayType": "function", "displayName": "获取现在时间", "insertText": "Now()", "subGroup": "time"}
|
|
672
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取现在时间", "insertText": "Now()", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回当前系统时间,通常与其他日期时间函数搭配使用" , "definition": "Now():日期时间"}
|
|
673
673
|
*/
|
|
674
674
|
function Now(): number;
|
|
675
675
|
/**
|
|
@@ -679,7 +679,7 @@ alternate?: any;
|
|
|
679
679
|
* 根据输入的日期时间返回时间戳
|
|
680
680
|
*
|
|
681
681
|
* @privateForWeDa
|
|
682
|
-
* {"group": "formula", "displayType": "function", "displayName": "获取时间戳", "insertText": "Timestamp(1661334203345)", "subGroup": "time"}
|
|
682
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取时间戳", "insertText": "Timestamp(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的日期时间返回时间戳" , "definition": "Timestamp(日期时间):日期时间"}
|
|
683
683
|
*/
|
|
684
684
|
function Timestamp(arg: number | string | Date): number;
|
|
685
685
|
/**
|
|
@@ -689,7 +689,7 @@ alternate?: any;
|
|
|
689
689
|
* 根据输入的日期时间返回该时间的秒数
|
|
690
690
|
*
|
|
691
691
|
* @privateForWeDa
|
|
692
|
-
* {"group": "formula", "displayType": "function", "displayName": "获取秒数", "insertText": "Second(1661334203345)", "subGroup": "time"}
|
|
692
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取秒数", "insertText": "Second(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的日期时间返回该时间的秒数" , "definition": "Second(日期时间):数字"}
|
|
693
693
|
*/
|
|
694
694
|
function Second(arg: number | string | Date): number;
|
|
695
695
|
/**
|
|
@@ -699,7 +699,7 @@ alternate?: any;
|
|
|
699
699
|
* 根据输入的日期时间返回该时间的分钟部分
|
|
700
700
|
*
|
|
701
701
|
* @privateForWeDa
|
|
702
|
-
* {"group": "formula", "displayType": "function", "displayName": "获取分钟数", "insertText": "Minute(1661334203345)", "subGroup": "time"}
|
|
702
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取分钟数", "insertText": "Minute(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的日期时间返回该时间的分钟部分" , "definition": "Minute(日期时间):数字"}
|
|
703
703
|
*/
|
|
704
704
|
function Minute(arg: number | string | Date): number;
|
|
705
705
|
/**
|
|
@@ -709,7 +709,7 @@ alternate?: any;
|
|
|
709
709
|
* 根据输入的日期时间返回该时间的小时部分,24小时制
|
|
710
710
|
*
|
|
711
711
|
* @privateForWeDa
|
|
712
|
-
* {"group": "formula", "displayType": "function", "displayName": "获取小时数", "insertText": "Hour(1661334203345)", "subGroup": "time"}
|
|
712
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取小时数", "insertText": "Hour(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的日期时间返回该时间的小时部分,24小时制" , "definition": "Hour(日期时间):数字"}
|
|
713
713
|
*/
|
|
714
714
|
function Hour(arg: number | string | Date): number;
|
|
715
715
|
/**
|
|
@@ -719,7 +719,7 @@ alternate?: any;
|
|
|
719
719
|
* 根据输入的日期时间返回该时间的日部分,范围为 1-31
|
|
720
720
|
*
|
|
721
721
|
* @privateForWeDa
|
|
722
|
-
* {"group": "formula", "displayType": "function", "displayName": "获取天数", "insertText": "Day(1661334203345)", "subGroup": "time"}
|
|
722
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取天数", "insertText": "Day(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的日期时间返回该时间的日部分,范围为 1-31" , "definition": "Day(日期时间):数字"}
|
|
723
723
|
*/
|
|
724
724
|
function Day(arg: number | string | Date): number;
|
|
725
725
|
/**
|
|
@@ -729,7 +729,7 @@ alternate?: any;
|
|
|
729
729
|
* 根据输入的日期时间返回该时间的星期数
|
|
730
730
|
*
|
|
731
731
|
* @privateForWeDa
|
|
732
|
-
* {"group": "formula", "displayType": "function", "displayName": "获取星期数", "insertText": "DayOfWeek(1661334203345)", "subGroup": "time"}
|
|
732
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取星期数", "insertText": "DayOfWeek(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的日期时间返回该时间的星期数" , "definition": "DayOfWeek(日期时间):数字"}
|
|
733
733
|
*/
|
|
734
734
|
function DayOfWeek(arg: number | string | Date): number;
|
|
735
735
|
/**
|
|
@@ -739,7 +739,7 @@ alternate?: any;
|
|
|
739
739
|
* 根据输入的日期时间返回该时间的月份
|
|
740
740
|
*
|
|
741
741
|
* @privateForWeDa
|
|
742
|
-
* {"group": "formula", "displayType": "function", "displayName": "获取月数", "insertText": "Month(1661334203345)", "subGroup": "time"}
|
|
742
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取月数", "insertText": "Month(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的日期时间返回该时间的月份" , "definition": "Month(日期时间):数字"}
|
|
743
743
|
*/
|
|
744
744
|
function Month(arg: number | string | Date): number;
|
|
745
745
|
/**
|
|
@@ -749,7 +749,7 @@ alternate?: any;
|
|
|
749
749
|
* 根据输入的日期时间返回该时间的年份
|
|
750
750
|
*
|
|
751
751
|
* @privateForWeDa
|
|
752
|
-
* {"group": "formula", "displayType": "function", "displayName": "获取年份", "insertText": "Year(1661334203345)", "subGroup": "time"}
|
|
752
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取年份", "insertText": "Year(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的日期时间返回该时间的年份" , "definition": "Year(日期时间):数字"}
|
|
753
753
|
*/
|
|
754
754
|
function Year(arg: number | string | Date): number;
|
|
755
755
|
/**
|
|
@@ -759,7 +759,7 @@ alternate?: any;
|
|
|
759
759
|
* 根据输入的年月日数值返回一个日期类型的数据,例如 GetDate(2017,3,24)
|
|
760
760
|
*
|
|
761
761
|
* @privateForWeDa
|
|
762
|
-
* {"group": "formula", "displayType": "function", "displayName": "使用年月日创建日期时间", "insertText": "GetDate(2011, 7, 2)", "subGroup": "time"}
|
|
762
|
+
* {"group": "formula", "displayType": "function", "displayName": "使用年月日创建日期时间", "insertText": "GetDate(2011, 7, 2)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的年月日数值返回一个日期类型的数据,例如 GetDate(2017,3,24)" , "definition": "GetDate(数字,数字,数字):日期时间"}
|
|
763
763
|
*/
|
|
764
764
|
function GetDate(year: number, month: number, day: number): number;
|
|
765
765
|
/**
|
|
@@ -769,7 +769,7 @@ alternate?: any;
|
|
|
769
769
|
* 将日期时间文本根据指定格式转化为日期时间,例如 DateTimeValue("2021-12-11 01:19:12", "yyyy-MM-dd HH:mm:ss")
|
|
770
770
|
*
|
|
771
771
|
* @privateForWeDa
|
|
772
|
-
* {"group": "formula", "displayType": "function", "displayName": "使用时间日期文本创建日期时间", "insertText": "DateTimeValue('2011-07-02', 'YYYY:MM:DD')", "subGroup": "time"}
|
|
772
|
+
* {"group": "formula", "displayType": "function", "displayName": "使用时间日期文本创建日期时间", "insertText": "DateTimeValue('2011-07-02', 'YYYY:MM:DD')", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "将日期时间文本根据指定格式转化为日期时间,例如 DateTimeValue('2021-12-11 01:19:12', 'yyyy-MM-dd HH:mm:ss')" , "definition": "DateTimeValue(文本, 文本):日期时间"}
|
|
773
773
|
*/
|
|
774
774
|
function DateTimeValue(arg: string, val: string): number;
|
|
775
775
|
/**
|
|
@@ -779,7 +779,7 @@ alternate?: any;
|
|
|
779
779
|
* 根据输入的两个日期时间计算出年龄,例如 Age(Date(2017,3,24), Date(2021,3,24))
|
|
780
780
|
*
|
|
781
781
|
* @privateForWeDa
|
|
782
|
-
* {"group": "formula", "displayType": "function", "displayName": "计算年龄", "insertText": "Age(1661334203345, 1661334203345)", "subGroup": "time"}
|
|
782
|
+
* {"group": "formula", "displayType": "function", "displayName": "计算年龄", "insertText": "Age(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的两个日期时间计算出年龄,例如 Age(Date(2017,3,24), Date(2021,3,24))" , "definition": "Age(日期时间,日期时间):数字"}
|
|
783
783
|
*/
|
|
784
784
|
function Age(arg: number | string | Date, val: number | string | Date): number;
|
|
785
785
|
/**
|
|
@@ -789,7 +789,7 @@ alternate?: any;
|
|
|
789
789
|
* 计算当前年龄,例如 AgeOfNow(Date(2017,3,24))
|
|
790
790
|
*
|
|
791
791
|
* @privateForWeDa
|
|
792
|
-
* {"group": "formula", "displayType": "function", "displayName": "计算当前年龄", "insertText": "AgeOfNow(1661334203345)", "subGroup": "time"}
|
|
792
|
+
* {"group": "formula", "displayType": "function", "displayName": "计算当前年龄", "insertText": "AgeOfNow(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "计算当前年龄,例如 AgeOfNow(Date(2017,3,24))" , "definition": "AgeOfNow(日期时间):数字"}
|
|
793
793
|
*/
|
|
794
794
|
function AgeOfNow(arg: number | string | Date): number;
|
|
795
795
|
/**
|
|
@@ -799,7 +799,7 @@ alternate?: any;
|
|
|
799
799
|
* 在传入的日期时间上增加 X 天,支持负数
|
|
800
800
|
*
|
|
801
801
|
* @privateForWeDa
|
|
802
|
-
* {"group": "formula", "displayType": "function", "displayName": "增加 X 天", "insertText": "DateAdd(1661334203345, 1)", "subGroup": "time"}
|
|
802
|
+
* {"group": "formula", "displayType": "function", "displayName": "增加 X 天", "insertText": "DateAdd(1661334203345, 1)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "在传入的日期时间上增加 X 天,支持负数" , "definition": "DateAdd(日期时间, 数字):日期时间"}
|
|
803
803
|
*/
|
|
804
804
|
function DateAdd(arg: number | string | Date, day: number): number;
|
|
805
805
|
/**
|
|
@@ -809,7 +809,7 @@ alternate?: any;
|
|
|
809
809
|
* 在传入的日期和时间上增加 X 月,支持负数
|
|
810
810
|
*
|
|
811
811
|
* @privateForWeDa
|
|
812
|
-
* {"group": "formula", "displayType": "function", "displayName": "增加 X 月", "insertText": "MonthAdd(1661334203345, 1)", "subGroup": "time"}
|
|
812
|
+
* {"group": "formula", "displayType": "function", "displayName": "增加 X 月", "insertText": "MonthAdd(1661334203345, 1)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "在传入的日期和时间上增加 X 月,支持负数" , "definition": "MonthAdd(日期时间, 数字):日期时间"}
|
|
813
813
|
*/
|
|
814
814
|
function MonthAdd(arg: number | string | Date, month: number): number;
|
|
815
815
|
/**
|
|
@@ -819,7 +819,7 @@ alternate?: any;
|
|
|
819
819
|
* 在传入的日期和时间上增加 X 年,支持负数
|
|
820
820
|
*
|
|
821
821
|
* @privateForWeDa
|
|
822
|
-
* {"group": "formula", "displayType": "function", "displayName": "增加 X 年", "insertText": "YearAdd(1661334203345, 1)", "subGroup": "time"}
|
|
822
|
+
* {"group": "formula", "displayType": "function", "displayName": "增加 X 年", "insertText": "YearAdd(1661334203345, 1)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "在传入的日期和时间上增加 X 年,支持负数" , "definition": "YearAdd(日期时间, 数字):日期时间"}
|
|
823
823
|
*/
|
|
824
824
|
function YearAdd(arg: number | string | Date, year: number): number;
|
|
825
825
|
/**
|
|
@@ -829,7 +829,7 @@ alternate?: any;
|
|
|
829
829
|
* 返回两个日期时间字段之间的天数差,如果为同一天,差数为零
|
|
830
830
|
*
|
|
831
831
|
* @privateForWeDa
|
|
832
|
-
* {"group": "formula", "displayType": "function", "displayName": "天数差", "insertText": "DateDiff(1661334203345, 1661334203345)", "subGroup": "time"}
|
|
832
|
+
* {"group": "formula", "displayType": "function", "displayName": "天数差", "insertText": "DateDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回两个日期时间字段之间的天数差,如果为同一天,差数为零" , "definition": "DateDiff(日期时间, 日期时间):数字"}
|
|
833
833
|
*/
|
|
834
834
|
function DateDiff(startDay: number | string | Date, endDay: number | string | Date): number;
|
|
835
835
|
/**
|
|
@@ -839,7 +839,7 @@ alternate?: any;
|
|
|
839
839
|
* 返回两个日期时间字段之间的小时差,如果为同一小时,差数为零
|
|
840
840
|
*
|
|
841
841
|
* @privateForWeDa
|
|
842
|
-
* {"group": "formula", "displayType": "function", "displayName": "小时差", "insertText": "HourDiff(1661334203345, 1661334203345)", "subGroup": "time"}
|
|
842
|
+
* {"group": "formula", "displayType": "function", "displayName": "小时差", "insertText": "HourDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回两个日期时间字段之间的小时差,如果为同一小时,差数为零" , "definition": "HourDiff(日期时间, 日期时间):数字"}
|
|
843
843
|
*/
|
|
844
844
|
function HourDiff(startDay: number | string | Date, endDay: number | string | Date): number;
|
|
845
845
|
/**
|
|
@@ -849,7 +849,7 @@ alternate?: any;
|
|
|
849
849
|
* 返回两个日期时间字段之间的分钟差,如果为同一分钟,差数为零
|
|
850
850
|
*
|
|
851
851
|
* @privateForWeDa
|
|
852
|
-
* {"group": "formula", "displayType": "function", "displayName": "分钟差", "insertText": "MinuteDiff(1661334203345, 1661334203345)", "subGroup": "time"}
|
|
852
|
+
* {"group": "formula", "displayType": "function", "displayName": "分钟差", "insertText": "MinuteDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回两个日期时间字段之间的分钟差,如果为同一分钟,差数为零" , "definition": "MinuteDiff(日期时间, 日期时间):数字"}
|
|
853
853
|
*/
|
|
854
854
|
function MinuteDiff(startDay: number | string | Date, endDay: number | string | Date): number;
|
|
855
855
|
/**
|
|
@@ -859,7 +859,7 @@ alternate?: any;
|
|
|
859
859
|
* 返回两个日期时间字段之间的天数差,如果为同一天,差数为零
|
|
860
860
|
*
|
|
861
861
|
* @privateForWeDa
|
|
862
|
-
* {"group": "formula", "displayType": "function", "displayName": "秒数差", "insertText": "SecondDiff(1661334203345, 1661334203345)", "subGroup": "time"}
|
|
862
|
+
* {"group": "formula", "displayType": "function", "displayName": "秒数差", "insertText": "SecondDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回两个日期时间字段之间的天数差,如果为同一天,差数为零" , "definition": "SecondDiff(日期时间, 日期时间):数字"}
|
|
863
863
|
*/
|
|
864
864
|
function SecondDiff(startDay: number | string | Date, endDay: number | string | Date): number;
|
|
865
865
|
/**
|
|
@@ -869,7 +869,7 @@ alternate?: any;
|
|
|
869
869
|
* 返回两个日期时间字段之间的月数差,如果为同一月,差数为零
|
|
870
870
|
*
|
|
871
871
|
* @privateForWeDa
|
|
872
|
-
* {"group": "formula", "displayType": "function", "displayName": "月数差", "insertText": "MonthDiff(1661334203345, 1661334203345)", "subGroup": "time"}
|
|
872
|
+
* {"group": "formula", "displayType": "function", "displayName": "月数差", "insertText": "MonthDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回两个日期时间字段之间的月数差,如果为同一月,差数为零" , "definition": "MonthDiff(日期时间, 日期时间):数字"}
|
|
873
873
|
*/
|
|
874
874
|
function MonthDiff(startDay: number | string | Date, endDay: number | string | Date): number;
|
|
875
875
|
/**
|
|
@@ -879,7 +879,7 @@ alternate?: any;
|
|
|
879
879
|
* 返回两个日期时间字段之间的年数差,如果为同一年,差数为零
|
|
880
880
|
*
|
|
881
881
|
* @privateForWeDa
|
|
882
|
-
* {"group": "formula", "displayType": "function", "displayName": "年数差", "insertText": "YearDiff(1661334203345, 1661334203345)", "subGroup": "time"}
|
|
882
|
+
* {"group": "formula", "displayType": "function", "displayName": "年数差", "insertText": "YearDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回两个日期时间字段之间的年数差,如果为同一年,差数为零" , "definition": "YearDiff(日期时间, 日期时间):数字"}
|
|
883
883
|
*/
|
|
884
884
|
function YearDiff(startDay: number | string | Date, endDay: number | string | Date): number;
|
|
885
885
|
/**
|
|
@@ -889,7 +889,7 @@ alternate?: any;
|
|
|
889
889
|
* 格式化日期时间为指定格式的文本,例如 DateText(Date(2017,3,24), "yyyy-MM-dd HH:mm:ss")
|
|
890
890
|
*
|
|
891
891
|
* @privateForWeDa
|
|
892
|
-
* {"group": "formula", "displayType": "function", "displayName": "日期时间格式化", "insertText": "DateText(1661334203345, 'YYYY-MM-DD HH:mm:ss')", "subGroup": "time"}
|
|
892
|
+
* {"group": "formula", "displayType": "function", "displayName": "日期时间格式化", "insertText": "DateText(1661334203345, 'YYYY-MM-DD HH:mm:ss')", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "格式化日期时间为指定格式的文本,例如 DateText(Date(2017,3,24), 'yyyy-MM-dd HH:mm:ss')" , "definition": "DateText(日期时间, 文本):文本"}
|
|
893
893
|
*/
|
|
894
894
|
function DateText(createdTime: number | string | Date, text: string): string;
|
|
895
895
|
/**
|
|
@@ -899,7 +899,7 @@ alternate?: any;
|
|
|
899
899
|
* 判断传入的日期时间是否为今天,例如 IsToday(Date(2022,4,8))
|
|
900
900
|
*
|
|
901
901
|
* @privateForWeDa
|
|
902
|
-
* {"group": "formula", "displayType": "function", "displayName": "是否为今天", "insertText": "IsToday(1661334203345)", "subGroup": "time"}
|
|
902
|
+
* {"group": "formula", "displayType": "function", "displayName": "是否为今天", "insertText": "IsToday(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "判断传入的日期时间是否为今天,例如 IsToday(Date(2022,4,8))" , "definition": "IsToday(日期时间):布尔值"}
|
|
903
903
|
*/
|
|
904
904
|
function IsToday(date: number | string | Date): boolean;
|
|
905
905
|
|
|
@@ -1015,7 +1015,7 @@ declare namespace $comp {
|
|
|
1015
1015
|
* 计算传入数字的绝对值
|
|
1016
1016
|
*
|
|
1017
1017
|
* @privateForWeDa
|
|
1018
|
-
* {"group": "formula", "displayType": "function", "displayName": "绝对值", "insertText": "ABS(1)", "subGroup": "calculation"}
|
|
1018
|
+
* {"group": "formula", "displayType": "function", "displayName": "绝对值", "insertText": "ABS(1)", "subGroup": "calculation", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "计算传入数字的绝对值" , "definition": "ABS(数字):数字"}
|
|
1019
1019
|
*/
|
|
1020
1020
|
declare function ABS(num: number): number;
|
|
1021
1021
|
/**
|
|
@@ -1025,7 +1025,7 @@ declare function ABS(num: number): number;
|
|
|
1025
1025
|
* 返回一组数字中的最小值
|
|
1026
1026
|
*
|
|
1027
1027
|
* @privateForWeDa
|
|
1028
|
-
* {"group": "formula", "displayType": "function", "displayName": "最小值", "insertText": "Min(1, 2)", "subGroup": "calculation"}
|
|
1028
|
+
* {"group": "formula", "displayType": "function", "displayName": "最小值", "insertText": "Min(1, 2)", "subGroup": "calculation", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回一组数字中的最小值" , "definition": "Min(数字1, [数字2, ...]):数字"}
|
|
1029
1029
|
*/
|
|
1030
1030
|
declare function Min(...args: number[]): number;
|
|
1031
1031
|
/**
|
|
@@ -1035,7 +1035,7 @@ declare function Min(...args: number[]): number;
|
|
|
1035
1035
|
* 返回一组数字中的最大值
|
|
1036
1036
|
*
|
|
1037
1037
|
* @privateForWeDa
|
|
1038
|
-
* {"group": "formula", "displayType": "function", "displayName": "最大值", "insertText": "Max(1, 2)", "subGroup": "calculation"}
|
|
1038
|
+
* {"group": "formula", "displayType": "function", "displayName": "最大值", "insertText": "Max(1, 2)", "subGroup": "calculation", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回一组数字中的最大值" , "definition": "Max(数字1, [数字2, ...]):数字"}
|
|
1039
1039
|
*/
|
|
1040
1040
|
declare function Max(...args: number[]): number;
|
|
1041
1041
|
/**
|
|
@@ -1045,7 +1045,7 @@ declare function Max(...args: number[]): number;
|
|
|
1045
1045
|
* 返回一组数字中的平均值
|
|
1046
1046
|
*
|
|
1047
1047
|
* @privateForWeDa
|
|
1048
|
-
* {"group": "formula", "displayType": "function", "displayName": "平均值", "insertText": "Average(1, 2)", "subGroup": "calculation"}
|
|
1048
|
+
* {"group": "formula", "displayType": "function", "displayName": "平均值", "insertText": "Average(1, 2)", "subGroup": "calculation", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回一组数字中的平均值" , "definition": "Average(数字1, [数字2, ...]):数字"}
|
|
1049
1049
|
*/
|
|
1050
1050
|
declare function Average(...args: number[]): number;
|
|
1051
1051
|
/**
|
|
@@ -1055,7 +1055,7 @@ declare function Average(...args: number[]): number;
|
|
|
1055
1055
|
* 返回传入数字向下取整的结果
|
|
1056
1056
|
*
|
|
1057
1057
|
* @privateForWeDa
|
|
1058
|
-
* {"group": "formula", "displayType": "function", "displayName": "向下取整", "insertText": "Floor(1)", "subGroup": "calculation"}
|
|
1058
|
+
* {"group": "formula", "displayType": "function", "displayName": "向下取整", "insertText": "Floor(1)", "subGroup": "calculation", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回传入数字向下取整的结果" , "definition": "Floor(数字):数字"}
|
|
1059
1059
|
*/
|
|
1060
1060
|
declare function Floor(num: number): number;
|
|
1061
1061
|
/**
|
|
@@ -1065,7 +1065,7 @@ declare function Floor(num: number): number;
|
|
|
1065
1065
|
* 返回传入数字向上取整的结果
|
|
1066
1066
|
*
|
|
1067
1067
|
* @privateForWeDa
|
|
1068
|
-
* {"group": "formula", "displayType": "function", "displayName": "向上取整", "insertText": "Ceiling(1)", "subGroup": "calculation"}
|
|
1068
|
+
* {"group": "formula", "displayType": "function", "displayName": "向上取整", "insertText": "Ceiling(1)", "subGroup": "calculation", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回传入数字向上取整的结果" , "definition": "Ceiling(数字):数字"}
|
|
1069
1069
|
*/
|
|
1070
1070
|
declare function Ceiling(num: number): number;
|
|
1071
1071
|
/**
|
|
@@ -1075,7 +1075,7 @@ declare function Ceiling(num: number): number;
|
|
|
1075
1075
|
* 返回传入数字四舍五入后的结果
|
|
1076
1076
|
*
|
|
1077
1077
|
* @privateForWeDa
|
|
1078
|
-
* {"group": "formula", "displayType": "function", "displayName": "四舍五入", "insertText": "Round(1)", "subGroup": "calculation"}
|
|
1078
|
+
* {"group": "formula", "displayType": "function", "displayName": "四舍五入", "insertText": "Round(1)", "subGroup": "calculation", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回传入数字四舍五入后的结果" , "definition": "Round(数字):数字"}
|
|
1079
1079
|
*/
|
|
1080
1080
|
declare function Round(num: number): number;
|
|
1081
1081
|
/**
|
|
@@ -1085,7 +1085,7 @@ declare function Round(num: number): number;
|
|
|
1085
1085
|
* 返回一组数字中的和
|
|
1086
1086
|
*
|
|
1087
1087
|
* @privateForWeDa
|
|
1088
|
-
* {"group": "formula", "displayType": "function", "displayName": "求和", "insertText": "Sum(1, 2)", "subGroup": "calculation"}
|
|
1088
|
+
* {"group": "formula", "displayType": "function", "displayName": "求和", "insertText": "Sum(1, 2)", "subGroup": "calculation", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回一组数字中的和" , "definition": "Sum(数字1, [数字2, ...]):数字"}
|
|
1089
1089
|
*/
|
|
1090
1090
|
declare function Sum(...args: number[]): number;
|
|
1091
1091
|
/**
|
|
@@ -1095,7 +1095,7 @@ declare function Sum(...args: number[]): number;
|
|
|
1095
1095
|
* 返回一个指定范围的伪随机数,例如 Rand(10),返回一个范围在 10 以内的随机数
|
|
1096
1096
|
*
|
|
1097
1097
|
* @privateForWeDa
|
|
1098
|
-
* {"group": "formula", "displayType": "function", "displayName": "随机数", "insertText": "Rand(1)", "subGroup": "calculation"}
|
|
1098
|
+
* {"group": "formula", "displayType": "function", "displayName": "随机数", "insertText": "Rand(1)", "subGroup": "calculation", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回一个指定范围的伪随机数,例如 Rand(10),返回一个范围在 10 以内的随机数" , "definition": "Rand(数字):数字"}
|
|
1099
1099
|
*/
|
|
1100
1100
|
declare function Rand(num: number): number;
|
|
1101
1101
|
|
|
@@ -1111,7 +1111,7 @@ alternate?: any;
|
|
|
1111
1111
|
* 按判断条件进行逻辑比较,满足时返回一个值,不满足时返回另一个值。
|
|
1112
1112
|
*
|
|
1113
1113
|
* @privateForWeDa
|
|
1114
|
-
* {"group": "formula", "displayType": "function", "displayName": "条件分支", "insertText": "If(true, '您好', 'hello')", "subGroup": "logic"}
|
|
1114
|
+
* {"group": "formula", "displayType": "function", "displayName": "条件分支", "insertText": "If(true, '您好', 'hello')", "subGroup": "logic", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "按判断条件进行逻辑比较,满足时返回一个值,不满足时返回另一个值。" , "definition": "If(判断条件, 满足时返回的值, 不满足时返回的值):任何类型"}
|
|
1115
1115
|
*/
|
|
1116
1116
|
declare function If(data: IIfObjectParam): any;
|
|
1117
1117
|
declare function If(condition: boolean, consequent?: any, alternate?: any): any;
|
|
@@ -1122,7 +1122,7 @@ declare function If(condition: boolean, consequent?: any, alternate?: any): any;
|
|
|
1122
1122
|
* 判断传入的文本是否为空
|
|
1123
1123
|
*
|
|
1124
1124
|
* @privateForWeDa
|
|
1125
|
-
* {"group": "formula", "displayType": "function", "displayName": "是否为空", "insertText": "IsEmpty('hello')", "subGroup": "logic"}
|
|
1125
|
+
* {"group": "formula", "displayType": "function", "displayName": "是否为空", "insertText": "IsEmpty('hello')", "subGroup": "logic", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "判断传入的文本是否为空" , "definition": "IsEmpty(值):布尔值"}
|
|
1126
1126
|
*/
|
|
1127
1127
|
declare function IsEmpty(text: string | string[]): boolean;
|
|
1128
1128
|
/**
|
|
@@ -1132,7 +1132,7 @@ declare function IsEmpty(text: string | string[]): boolean;
|
|
|
1132
1132
|
* 判断传入的字段值是否包含数据,即不为 NULL
|
|
1133
1133
|
*
|
|
1134
1134
|
* @privateForWeDa
|
|
1135
|
-
* {"group": "formula", "displayType": "function", "displayName": "是否为null", "insertText": "NotNull(null)", "subGroup": "logic"}
|
|
1135
|
+
* {"group": "formula", "displayType": "function", "displayName": "是否为null", "insertText": "NotNull(null)", "subGroup": "logic", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "判断传入的字段值是否包含数据,即不为 NULL" , "definition": "NotNull(字段):布尔值"}
|
|
1136
1136
|
*/
|
|
1137
1137
|
declare function NotNull(val: any): boolean;
|
|
1138
1138
|
/**
|
|
@@ -1142,7 +1142,7 @@ declare function NotNull(val: any): boolean;
|
|
|
1142
1142
|
* 用于确定所有判断条件是否为真
|
|
1143
1143
|
*
|
|
1144
1144
|
* @privateForWeDa
|
|
1145
|
-
* {"group": "formula", "displayType": "function", "displayName": "与", "insertText": "And(true, false)", "subGroup": "logic"}
|
|
1145
|
+
* {"group": "formula", "displayType": "function", "displayName": "与", "insertText": "And(true, false)", "subGroup": "logic", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "用于确定所有判断条件是否为真" , "definition": "And(判断条件1, [判断条件2,...]):布尔值"}
|
|
1146
1146
|
*/
|
|
1147
1147
|
declare function And(...args: boolean[]): boolean;
|
|
1148
1148
|
/**
|
|
@@ -1152,7 +1152,7 @@ declare function And(...args: boolean[]): boolean;
|
|
|
1152
1152
|
* 任意一个判断条件为真,则结果为真;所有条件为否,结果才为否
|
|
1153
1153
|
*
|
|
1154
1154
|
* @privateForWeDa
|
|
1155
|
-
* {"group": "formula", "displayType": "function", "displayName": "或", "insertText": "Or(true, false)", "subGroup": "logic"}
|
|
1155
|
+
* {"group": "formula", "displayType": "function", "displayName": "或", "insertText": "Or(true, false)", "subGroup": "logic", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "任意一个判断条件为真,则结果为真;所有条件为否,结果才为否" , "definition": "Or(判断条件1, [判断条件2,...]):布尔值"}
|
|
1156
1156
|
*/
|
|
1157
1157
|
declare function Or(...args: boolean[]): boolean;
|
|
1158
1158
|
|
|
@@ -1163,7 +1163,7 @@ declare function Or(...args: boolean[]): boolean;
|
|
|
1163
1163
|
* 获取传入文本的字符数
|
|
1164
1164
|
*
|
|
1165
1165
|
* @privateForWeDa
|
|
1166
|
-
* {"group": "formula", "displayType": "function", "displayName": "获取文本长度", "insertText": "Len('文本')", "subGroup": "text"}
|
|
1166
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取文本长度", "insertText": "Len('文本')", "subGroup": "text", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "获取传入文本的字符数" , "definition": "Len(文本):数字"}
|
|
1167
1167
|
*/
|
|
1168
1168
|
declare function Len(text: string): number;
|
|
1169
1169
|
/**
|
|
@@ -1173,7 +1173,7 @@ declare function Len(text: string): number;
|
|
|
1173
1173
|
* 判断文本 1 是否包含文本 2
|
|
1174
1174
|
*
|
|
1175
1175
|
* @privateForWeDa
|
|
1176
|
-
* {"group": "formula", "displayType": "function", "displayName": "是否包含指定文本", "insertText": "Contains('文本1', '文本2')", "subGroup": "text"}
|
|
1176
|
+
* {"group": "formula", "displayType": "function", "displayName": "是否包含指定文本", "insertText": "Contains('文本1', '文本2')", "subGroup": "text", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "判断文本 1 是否包含文本 2" , "definition": "Contains(文本1, 文本2):布尔值"}
|
|
1177
1177
|
*/
|
|
1178
1178
|
declare function Contains(text1: string, text2: string): boolean;
|
|
1179
1179
|
/**
|
|
@@ -1183,7 +1183,7 @@ declare function Contains(text1: string, text2: string): boolean;
|
|
|
1183
1183
|
* 根据传入的文本 2,将文本 1 拆分成文本数组,例如 Split("张三,李四,王五", ",")
|
|
1184
1184
|
*
|
|
1185
1185
|
* @privateForWeDa
|
|
1186
|
-
* {"group": "formula", "displayType": "function", "displayName": "拆分文本", "insertText": "Split('文本1', '文本2')", "subGroup": "text"}
|
|
1186
|
+
* {"group": "formula", "displayType": "function", "displayName": "拆分文本", "insertText": "Split('文本1', '文本2')", "subGroup": "text", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据传入的文本 2,将文本 1 拆分成文本数组,例如 Split('张三,李四,王五', ',')" , "definition": "Split(文本1,文本2):文本数组"}
|
|
1187
1187
|
*/
|
|
1188
1188
|
declare function Split(text1: string, text2: string): string[];
|
|
1189
1189
|
/**
|
|
@@ -1193,7 +1193,7 @@ declare function Split(text1: string, text2: string): string[];
|
|
|
1193
1193
|
* 删除文本开头和结尾的所有空格和制表符,文本中间的空格和制表符不会删除
|
|
1194
1194
|
*
|
|
1195
1195
|
* @privateForWeDa
|
|
1196
|
-
* {"group": "formula", "displayType": "function", "displayName": "删除开头/结尾空格和制表符", "insertText": "Trim('文本')", "subGroup": "text"}
|
|
1196
|
+
* {"group": "formula", "displayType": "function", "displayName": "删除开头/结尾空格和制表符", "insertText": "Trim('文本')", "subGroup": "text", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "删除文本开头和结尾的所有空格和制表符,文本中间的空格和制表符不会删除" , "definition": "Trim(文本):文本"}
|
|
1197
1197
|
*/
|
|
1198
1198
|
declare function Trim(text: string): string;
|
|
1199
1199
|
/**
|
|
@@ -1203,7 +1203,7 @@ declare function Trim(text: string): string;
|
|
|
1203
1203
|
* 将传入的文本转为全大写文本
|
|
1204
1204
|
*
|
|
1205
1205
|
* @privateForWeDa
|
|
1206
|
-
* {"group": "formula", "displayType": "function", "displayName": "转换为大写", "insertText": "Upper('文本')", "subGroup": "text"}
|
|
1206
|
+
* {"group": "formula", "displayType": "function", "displayName": "转换为大写", "insertText": "Upper('文本')", "subGroup": "text", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "将传入的文本转为全大写文本" , "definition": "Upper(文本):文本"}
|
|
1207
1207
|
*/
|
|
1208
1208
|
declare function Upper(text: string): string;
|
|
1209
1209
|
/**
|
|
@@ -1213,7 +1213,7 @@ declare function Upper(text: string): string;
|
|
|
1213
1213
|
* 将传入的文本转为全小写文本
|
|
1214
1214
|
*
|
|
1215
1215
|
* @privateForWeDa
|
|
1216
|
-
* {"group": "formula", "displayType": "function", "displayName": "转换为小写", "insertText": "Lower('文本')", "subGroup": "text"}
|
|
1216
|
+
* {"group": "formula", "displayType": "function", "displayName": "转换为小写", "insertText": "Lower('文本')", "subGroup": "text", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "将传入的文本转为全小写文本" , "definition": "Lower(文本):文本"}
|
|
1217
1217
|
*/
|
|
1218
1218
|
declare function Lower(text: string): string;
|
|
1219
1219
|
/**
|
|
@@ -1223,7 +1223,7 @@ declare function Lower(text: string): string;
|
|
|
1223
1223
|
* 返回多个文本拼接后的新文本
|
|
1224
1224
|
*
|
|
1225
1225
|
* @privateForWeDa
|
|
1226
|
-
* {"group": "formula", "displayType": "function", "displayName": "文本拼接", "insertText": "Concat('文本1', '文本2')", "subGroup": "text"}
|
|
1226
|
+
* {"group": "formula", "displayType": "function", "displayName": "文本拼接", "insertText": "Concat('文本1', '文本2')", "subGroup": "text", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回多个文本拼接后的新文本" , "definition": "Concat(文本1, [文本2,...]):文本"}
|
|
1227
1227
|
*/
|
|
1228
1228
|
declare function Concat(...text: string[]): string;
|
|
1229
1229
|
|
|
@@ -1234,7 +1234,7 @@ declare function Concat(...text: string[]): string;
|
|
|
1234
1234
|
* 返回当前系统时间,通常与其他日期时间函数搭配使用
|
|
1235
1235
|
*
|
|
1236
1236
|
* @privateForWeDa
|
|
1237
|
-
* {"group": "formula", "displayType": "function", "displayName": "获取现在时间", "insertText": "Now()", "subGroup": "time"}
|
|
1237
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取现在时间", "insertText": "Now()", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回当前系统时间,通常与其他日期时间函数搭配使用" , "definition": "Now():日期时间"}
|
|
1238
1238
|
*/
|
|
1239
1239
|
declare function Now(): number;
|
|
1240
1240
|
/**
|
|
@@ -1244,7 +1244,7 @@ declare function Now(): number;
|
|
|
1244
1244
|
* 根据输入的日期时间返回时间戳
|
|
1245
1245
|
*
|
|
1246
1246
|
* @privateForWeDa
|
|
1247
|
-
* {"group": "formula", "displayType": "function", "displayName": "获取时间戳", "insertText": "Timestamp(1661334203345)", "subGroup": "time"}
|
|
1247
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取时间戳", "insertText": "Timestamp(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的日期时间返回时间戳" , "definition": "Timestamp(日期时间):日期时间"}
|
|
1248
1248
|
*/
|
|
1249
1249
|
declare function Timestamp(arg: number | string | Date): number;
|
|
1250
1250
|
/**
|
|
@@ -1254,7 +1254,7 @@ declare function Timestamp(arg: number | string | Date): number;
|
|
|
1254
1254
|
* 根据输入的日期时间返回该时间的秒数
|
|
1255
1255
|
*
|
|
1256
1256
|
* @privateForWeDa
|
|
1257
|
-
* {"group": "formula", "displayType": "function", "displayName": "获取秒数", "insertText": "Second(1661334203345)", "subGroup": "time"}
|
|
1257
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取秒数", "insertText": "Second(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的日期时间返回该时间的秒数" , "definition": "Second(日期时间):数字"}
|
|
1258
1258
|
*/
|
|
1259
1259
|
declare function Second(arg: number | string | Date): number;
|
|
1260
1260
|
/**
|
|
@@ -1264,7 +1264,7 @@ declare function Second(arg: number | string | Date): number;
|
|
|
1264
1264
|
* 根据输入的日期时间返回该时间的分钟部分
|
|
1265
1265
|
*
|
|
1266
1266
|
* @privateForWeDa
|
|
1267
|
-
* {"group": "formula", "displayType": "function", "displayName": "获取分钟数", "insertText": "Minute(1661334203345)", "subGroup": "time"}
|
|
1267
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取分钟数", "insertText": "Minute(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的日期时间返回该时间的分钟部分" , "definition": "Minute(日期时间):数字"}
|
|
1268
1268
|
*/
|
|
1269
1269
|
declare function Minute(arg: number | string | Date): number;
|
|
1270
1270
|
/**
|
|
@@ -1274,7 +1274,7 @@ declare function Minute(arg: number | string | Date): number;
|
|
|
1274
1274
|
* 根据输入的日期时间返回该时间的小时部分,24小时制
|
|
1275
1275
|
*
|
|
1276
1276
|
* @privateForWeDa
|
|
1277
|
-
* {"group": "formula", "displayType": "function", "displayName": "获取小时数", "insertText": "Hour(1661334203345)", "subGroup": "time"}
|
|
1277
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取小时数", "insertText": "Hour(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的日期时间返回该时间的小时部分,24小时制" , "definition": "Hour(日期时间):数字"}
|
|
1278
1278
|
*/
|
|
1279
1279
|
declare function Hour(arg: number | string | Date): number;
|
|
1280
1280
|
/**
|
|
@@ -1284,7 +1284,7 @@ declare function Hour(arg: number | string | Date): number;
|
|
|
1284
1284
|
* 根据输入的日期时间返回该时间的日部分,范围为 1-31
|
|
1285
1285
|
*
|
|
1286
1286
|
* @privateForWeDa
|
|
1287
|
-
* {"group": "formula", "displayType": "function", "displayName": "获取天数", "insertText": "Day(1661334203345)", "subGroup": "time"}
|
|
1287
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取天数", "insertText": "Day(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的日期时间返回该时间的日部分,范围为 1-31" , "definition": "Day(日期时间):数字"}
|
|
1288
1288
|
*/
|
|
1289
1289
|
declare function Day(arg: number | string | Date): number;
|
|
1290
1290
|
/**
|
|
@@ -1294,7 +1294,7 @@ declare function Day(arg: number | string | Date): number;
|
|
|
1294
1294
|
* 根据输入的日期时间返回该时间的星期数
|
|
1295
1295
|
*
|
|
1296
1296
|
* @privateForWeDa
|
|
1297
|
-
* {"group": "formula", "displayType": "function", "displayName": "获取星期数", "insertText": "DayOfWeek(1661334203345)", "subGroup": "time"}
|
|
1297
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取星期数", "insertText": "DayOfWeek(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的日期时间返回该时间的星期数" , "definition": "DayOfWeek(日期时间):数字"}
|
|
1298
1298
|
*/
|
|
1299
1299
|
declare function DayOfWeek(arg: number | string | Date): number;
|
|
1300
1300
|
/**
|
|
@@ -1304,7 +1304,7 @@ declare function DayOfWeek(arg: number | string | Date): number;
|
|
|
1304
1304
|
* 根据输入的日期时间返回该时间的月份
|
|
1305
1305
|
*
|
|
1306
1306
|
* @privateForWeDa
|
|
1307
|
-
* {"group": "formula", "displayType": "function", "displayName": "获取月数", "insertText": "Month(1661334203345)", "subGroup": "time"}
|
|
1307
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取月数", "insertText": "Month(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的日期时间返回该时间的月份" , "definition": "Month(日期时间):数字"}
|
|
1308
1308
|
*/
|
|
1309
1309
|
declare function Month(arg: number | string | Date): number;
|
|
1310
1310
|
/**
|
|
@@ -1314,7 +1314,7 @@ declare function Month(arg: number | string | Date): number;
|
|
|
1314
1314
|
* 根据输入的日期时间返回该时间的年份
|
|
1315
1315
|
*
|
|
1316
1316
|
* @privateForWeDa
|
|
1317
|
-
* {"group": "formula", "displayType": "function", "displayName": "获取年份", "insertText": "Year(1661334203345)", "subGroup": "time"}
|
|
1317
|
+
* {"group": "formula", "displayType": "function", "displayName": "获取年份", "insertText": "Year(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的日期时间返回该时间的年份" , "definition": "Year(日期时间):数字"}
|
|
1318
1318
|
*/
|
|
1319
1319
|
declare function Year(arg: number | string | Date): number;
|
|
1320
1320
|
/**
|
|
@@ -1324,7 +1324,7 @@ declare function Year(arg: number | string | Date): number;
|
|
|
1324
1324
|
* 根据输入的年月日数值返回一个日期类型的数据,例如 GetDate(2017,3,24)
|
|
1325
1325
|
*
|
|
1326
1326
|
* @privateForWeDa
|
|
1327
|
-
* {"group": "formula", "displayType": "function", "displayName": "使用年月日创建日期时间", "insertText": "GetDate(2011, 7, 2)", "subGroup": "time"}
|
|
1327
|
+
* {"group": "formula", "displayType": "function", "displayName": "使用年月日创建日期时间", "insertText": "GetDate(2011, 7, 2)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的年月日数值返回一个日期类型的数据,例如 GetDate(2017,3,24)" , "definition": "GetDate(数字,数字,数字):日期时间"}
|
|
1328
1328
|
*/
|
|
1329
1329
|
declare function GetDate(year: number, month: number, day: number): number;
|
|
1330
1330
|
/**
|
|
@@ -1334,7 +1334,7 @@ declare function GetDate(year: number, month: number, day: number): number;
|
|
|
1334
1334
|
* 将日期时间文本根据指定格式转化为日期时间,例如 DateTimeValue("2021-12-11 01:19:12", "yyyy-MM-dd HH:mm:ss")
|
|
1335
1335
|
*
|
|
1336
1336
|
* @privateForWeDa
|
|
1337
|
-
* {"group": "formula", "displayType": "function", "displayName": "使用时间日期文本创建日期时间", "insertText": "DateTimeValue('2011-07-02', 'YYYY:MM:DD')", "subGroup": "time"}
|
|
1337
|
+
* {"group": "formula", "displayType": "function", "displayName": "使用时间日期文本创建日期时间", "insertText": "DateTimeValue('2011-07-02', 'YYYY:MM:DD')", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "将日期时间文本根据指定格式转化为日期时间,例如 DateTimeValue('2021-12-11 01:19:12', 'yyyy-MM-dd HH:mm:ss')" , "definition": "DateTimeValue(文本, 文本):日期时间"}
|
|
1338
1338
|
*/
|
|
1339
1339
|
declare function DateTimeValue(arg: string, val: string): number;
|
|
1340
1340
|
/**
|
|
@@ -1344,7 +1344,7 @@ declare function DateTimeValue(arg: string, val: string): number;
|
|
|
1344
1344
|
* 根据输入的两个日期时间计算出年龄,例如 Age(Date(2017,3,24), Date(2021,3,24))
|
|
1345
1345
|
*
|
|
1346
1346
|
* @privateForWeDa
|
|
1347
|
-
* {"group": "formula", "displayType": "function", "displayName": "计算年龄", "insertText": "Age(1661334203345, 1661334203345)", "subGroup": "time"}
|
|
1347
|
+
* {"group": "formula", "displayType": "function", "displayName": "计算年龄", "insertText": "Age(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "根据输入的两个日期时间计算出年龄,例如 Age(Date(2017,3,24), Date(2021,3,24))" , "definition": "Age(日期时间,日期时间):数字"}
|
|
1348
1348
|
*/
|
|
1349
1349
|
declare function Age(arg: number | string | Date, val: number | string | Date): number;
|
|
1350
1350
|
/**
|
|
@@ -1354,7 +1354,7 @@ declare function Age(arg: number | string | Date, val: number | string | Date):
|
|
|
1354
1354
|
* 计算当前年龄,例如 AgeOfNow(Date(2017,3,24))
|
|
1355
1355
|
*
|
|
1356
1356
|
* @privateForWeDa
|
|
1357
|
-
* {"group": "formula", "displayType": "function", "displayName": "计算当前年龄", "insertText": "AgeOfNow(1661334203345)", "subGroup": "time"}
|
|
1357
|
+
* {"group": "formula", "displayType": "function", "displayName": "计算当前年龄", "insertText": "AgeOfNow(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "计算当前年龄,例如 AgeOfNow(Date(2017,3,24))" , "definition": "AgeOfNow(日期时间):数字"}
|
|
1358
1358
|
*/
|
|
1359
1359
|
declare function AgeOfNow(arg: number | string | Date): number;
|
|
1360
1360
|
/**
|
|
@@ -1364,7 +1364,7 @@ declare function AgeOfNow(arg: number | string | Date): number;
|
|
|
1364
1364
|
* 在传入的日期时间上增加 X 天,支持负数
|
|
1365
1365
|
*
|
|
1366
1366
|
* @privateForWeDa
|
|
1367
|
-
* {"group": "formula", "displayType": "function", "displayName": "增加 X 天", "insertText": "DateAdd(1661334203345, 1)", "subGroup": "time"}
|
|
1367
|
+
* {"group": "formula", "displayType": "function", "displayName": "增加 X 天", "insertText": "DateAdd(1661334203345, 1)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "在传入的日期时间上增加 X 天,支持负数" , "definition": "DateAdd(日期时间, 数字):日期时间"}
|
|
1368
1368
|
*/
|
|
1369
1369
|
declare function DateAdd(arg: number | string | Date, day: number): number;
|
|
1370
1370
|
/**
|
|
@@ -1374,7 +1374,7 @@ declare function DateAdd(arg: number | string | Date, day: number): number;
|
|
|
1374
1374
|
* 在传入的日期和时间上增加 X 月,支持负数
|
|
1375
1375
|
*
|
|
1376
1376
|
* @privateForWeDa
|
|
1377
|
-
* {"group": "formula", "displayType": "function", "displayName": "增加 X 月", "insertText": "MonthAdd(1661334203345, 1)", "subGroup": "time"}
|
|
1377
|
+
* {"group": "formula", "displayType": "function", "displayName": "增加 X 月", "insertText": "MonthAdd(1661334203345, 1)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "在传入的日期和时间上增加 X 月,支持负数" , "definition": "MonthAdd(日期时间, 数字):日期时间"}
|
|
1378
1378
|
*/
|
|
1379
1379
|
declare function MonthAdd(arg: number | string | Date, month: number): number;
|
|
1380
1380
|
/**
|
|
@@ -1384,7 +1384,7 @@ declare function MonthAdd(arg: number | string | Date, month: number): number;
|
|
|
1384
1384
|
* 在传入的日期和时间上增加 X 年,支持负数
|
|
1385
1385
|
*
|
|
1386
1386
|
* @privateForWeDa
|
|
1387
|
-
* {"group": "formula", "displayType": "function", "displayName": "增加 X 年", "insertText": "YearAdd(1661334203345, 1)", "subGroup": "time"}
|
|
1387
|
+
* {"group": "formula", "displayType": "function", "displayName": "增加 X 年", "insertText": "YearAdd(1661334203345, 1)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "在传入的日期和时间上增加 X 年,支持负数" , "definition": "YearAdd(日期时间, 数字):日期时间"}
|
|
1388
1388
|
*/
|
|
1389
1389
|
declare function YearAdd(arg: number | string | Date, year: number): number;
|
|
1390
1390
|
/**
|
|
@@ -1394,7 +1394,7 @@ declare function YearAdd(arg: number | string | Date, year: number): number;
|
|
|
1394
1394
|
* 返回两个日期时间字段之间的天数差,如果为同一天,差数为零
|
|
1395
1395
|
*
|
|
1396
1396
|
* @privateForWeDa
|
|
1397
|
-
* {"group": "formula", "displayType": "function", "displayName": "天数差", "insertText": "DateDiff(1661334203345, 1661334203345)", "subGroup": "time"}
|
|
1397
|
+
* {"group": "formula", "displayType": "function", "displayName": "天数差", "insertText": "DateDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回两个日期时间字段之间的天数差,如果为同一天,差数为零" , "definition": "DateDiff(日期时间, 日期时间):数字"}
|
|
1398
1398
|
*/
|
|
1399
1399
|
declare function DateDiff(startDay: number | string | Date, endDay: number | string | Date): number;
|
|
1400
1400
|
/**
|
|
@@ -1404,7 +1404,7 @@ declare function DateDiff(startDay: number | string | Date, endDay: number | str
|
|
|
1404
1404
|
* 返回两个日期时间字段之间的小时差,如果为同一小时,差数为零
|
|
1405
1405
|
*
|
|
1406
1406
|
* @privateForWeDa
|
|
1407
|
-
* {"group": "formula", "displayType": "function", "displayName": "小时差", "insertText": "HourDiff(1661334203345, 1661334203345)", "subGroup": "time"}
|
|
1407
|
+
* {"group": "formula", "displayType": "function", "displayName": "小时差", "insertText": "HourDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回两个日期时间字段之间的小时差,如果为同一小时,差数为零" , "definition": "HourDiff(日期时间, 日期时间):数字"}
|
|
1408
1408
|
*/
|
|
1409
1409
|
declare function HourDiff(startDay: number | string | Date, endDay: number | string | Date): number;
|
|
1410
1410
|
/**
|
|
@@ -1414,7 +1414,7 @@ declare function HourDiff(startDay: number | string | Date, endDay: number | str
|
|
|
1414
1414
|
* 返回两个日期时间字段之间的分钟差,如果为同一分钟,差数为零
|
|
1415
1415
|
*
|
|
1416
1416
|
* @privateForWeDa
|
|
1417
|
-
* {"group": "formula", "displayType": "function", "displayName": "分钟差", "insertText": "MinuteDiff(1661334203345, 1661334203345)", "subGroup": "time"}
|
|
1417
|
+
* {"group": "formula", "displayType": "function", "displayName": "分钟差", "insertText": "MinuteDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回两个日期时间字段之间的分钟差,如果为同一分钟,差数为零" , "definition": "MinuteDiff(日期时间, 日期时间):数字"}
|
|
1418
1418
|
*/
|
|
1419
1419
|
declare function MinuteDiff(startDay: number | string | Date, endDay: number | string | Date): number;
|
|
1420
1420
|
/**
|
|
@@ -1424,7 +1424,7 @@ declare function MinuteDiff(startDay: number | string | Date, endDay: number | s
|
|
|
1424
1424
|
* 返回两个日期时间字段之间的天数差,如果为同一天,差数为零
|
|
1425
1425
|
*
|
|
1426
1426
|
* @privateForWeDa
|
|
1427
|
-
* {"group": "formula", "displayType": "function", "displayName": "秒数差", "insertText": "SecondDiff(1661334203345, 1661334203345)", "subGroup": "time"}
|
|
1427
|
+
* {"group": "formula", "displayType": "function", "displayName": "秒数差", "insertText": "SecondDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回两个日期时间字段之间的天数差,如果为同一天,差数为零" , "definition": "SecondDiff(日期时间, 日期时间):数字"}
|
|
1428
1428
|
*/
|
|
1429
1429
|
declare function SecondDiff(startDay: number | string | Date, endDay: number | string | Date): number;
|
|
1430
1430
|
/**
|
|
@@ -1434,7 +1434,7 @@ declare function SecondDiff(startDay: number | string | Date, endDay: number | s
|
|
|
1434
1434
|
* 返回两个日期时间字段之间的月数差,如果为同一月,差数为零
|
|
1435
1435
|
*
|
|
1436
1436
|
* @privateForWeDa
|
|
1437
|
-
* {"group": "formula", "displayType": "function", "displayName": "月数差", "insertText": "MonthDiff(1661334203345, 1661334203345)", "subGroup": "time"}
|
|
1437
|
+
* {"group": "formula", "displayType": "function", "displayName": "月数差", "insertText": "MonthDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回两个日期时间字段之间的月数差,如果为同一月,差数为零" , "definition": "MonthDiff(日期时间, 日期时间):数字"}
|
|
1438
1438
|
*/
|
|
1439
1439
|
declare function MonthDiff(startDay: number | string | Date, endDay: number | string | Date): number;
|
|
1440
1440
|
/**
|
|
@@ -1444,7 +1444,7 @@ declare function MonthDiff(startDay: number | string | Date, endDay: number | st
|
|
|
1444
1444
|
* 返回两个日期时间字段之间的年数差,如果为同一年,差数为零
|
|
1445
1445
|
*
|
|
1446
1446
|
* @privateForWeDa
|
|
1447
|
-
* {"group": "formula", "displayType": "function", "displayName": "年数差", "insertText": "YearDiff(1661334203345, 1661334203345)", "subGroup": "time"}
|
|
1447
|
+
* {"group": "formula", "displayType": "function", "displayName": "年数差", "insertText": "YearDiff(1661334203345, 1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "返回两个日期时间字段之间的年数差,如果为同一年,差数为零" , "definition": "YearDiff(日期时间, 日期时间):数字"}
|
|
1448
1448
|
*/
|
|
1449
1449
|
declare function YearDiff(startDay: number | string | Date, endDay: number | string | Date): number;
|
|
1450
1450
|
/**
|
|
@@ -1454,7 +1454,7 @@ declare function YearDiff(startDay: number | string | Date, endDay: number | str
|
|
|
1454
1454
|
* 格式化日期时间为指定格式的文本,例如 DateText(Date(2017,3,24), "yyyy-MM-dd HH:mm:ss")
|
|
1455
1455
|
*
|
|
1456
1456
|
* @privateForWeDa
|
|
1457
|
-
* {"group": "formula", "displayType": "function", "displayName": "日期时间格式化", "insertText": "DateText(1661334203345, 'YYYY-MM-DD HH:mm:ss')", "subGroup": "time"}
|
|
1457
|
+
* {"group": "formula", "displayType": "function", "displayName": "日期时间格式化", "insertText": "DateText(1661334203345, 'YYYY-MM-DD HH:mm:ss')", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "格式化日期时间为指定格式的文本,例如 DateText(Date(2017,3,24), 'yyyy-MM-dd HH:mm:ss')" , "definition": "DateText(日期时间, 文本):文本"}
|
|
1458
1458
|
*/
|
|
1459
1459
|
declare function DateText(createdTime: number | string | Date, text: string): string;
|
|
1460
1460
|
/**
|
|
@@ -1464,7 +1464,7 @@ declare function DateText(createdTime: number | string | Date, text: string): st
|
|
|
1464
1464
|
* 判断传入的日期时间是否为今天,例如 IsToday(Date(2022,4,8))
|
|
1465
1465
|
*
|
|
1466
1466
|
* @privateForWeDa
|
|
1467
|
-
* {"group": "formula", "displayType": "function", "displayName": "是否为今天", "insertText": "IsToday(1661334203345)", "subGroup": "time"}
|
|
1467
|
+
* {"group": "formula", "displayType": "function", "displayName": "是否为今天", "insertText": "IsToday(1661334203345)", "subGroup": "time", "doc": "https://cloud.tencent.com/document/product/1301/76328" , "description": "判断传入的日期时间是否为今天,例如 IsToday(Date(2022,4,8))" , "definition": "IsToday(日期时间):布尔值"}
|
|
1468
1468
|
*/
|
|
1469
1469
|
declare function IsToday(date: number | string | Date): boolean;
|
|
1470
1470
|
|