概述
year()函数提取一个时间对象的年份数值。
语法
year(time)
参数 |
类型 |
描述 |
|---|---|---|
time |
Datetime、timestamp或string | 时间对象 |
返回值类型:Integer
结果示例
return year("2022-10-5")
结果:2022
使用示例
提取2018年发布的评论信息。
find().nodes({year(@review.time) == 2018}) as n
return n{*}
申请证书
证书详情
| ID | |
| 产品 | |
| 状态 | |
| 核数 | |
| Shard 服务最大数量 | |
| Shard 服务最大总核数 | |
| HDC 服务最大数量 | |
| HDC 服务最大总核数 | |
| 申请天数 | |
| 审批日期 | |
| 过期日期 | |
| MAC地址 | |
| 申请理由 | |
| 审核信息 |
用户邮箱:
当前未申请证书.
| Certificate | Issued at | Valid until | Serial No. | File |
|---|
| Serial No. | Valid until | File |
|---|
Not having one? Apply now! >>>
| ProductName | CreateTime | ID | Price | File |
|---|
| ProductName | CreateTime | ID | Price | File |
|---|
No Invoice
year()函数提取一个时间对象的年份数值。
year(time)
参数 |
类型 |
描述 |
|---|---|---|
time |
Datetime、timestamp或string | 时间对象 |
返回值类型:Integer
return year("2022-10-5")
结果:2022
提取2018年发布的评论信息。
find().nodes({year(@review.time) == 2018}) as n
return n{*}
没有查询到结果