dolphindb - 在 DolphinDB 中使用 datehour() 函数的问题
问题描述
GUI中的代码:
datehour(2018.09.03 8:30:00)
运行时错误:
2020.12.09 17:14:24.420: executing code ...
Both arguments of 'pair' must be a scalar
为什么?
解决方案
如果使用函数 datehour(),则其参数中的月、日、时、分、秒必须包含两位数。正确的代码如下所示:
datehour(2018.09.03 08:30:00)
结果是:
2018.09.03T08
推荐阅读
- java - Intellij Windows 10 SQLite 访问被拒绝
- python - 从 URL 创建 ipynb
- shell - 从命令输出中检索值
- node.js - 将 Angular 6 Universal 部署到 GCP App Engine
- google-app-engine - 更改 appengine ndb 密钥
- javascript - 如何设置节点 js 服务器的 dns?
- excel - Excel 使用字符串作为单元格引用
- c# - 可以为空的程度
= null 有效吗? - spring-mvc - Spring-MVC 3.0 控制器错误:HTTP 状态 400
- sql - 如何根据日期删除重叠行并在 sql 中保持最新?