首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏新亮笔记

    Go - time.RFC3339 时间格式化

    Jan 2006 15:04:05 MST" RFC1123Z = "Mon, 02 Jan 2006 15:04:05 -0700" // RFC1123 with numeric zone RFC3339 04:05.000" StampMicro = "Jan _2 15:04:05.000000" StampNano = "Jan _2 15:04:05.000000000" ) 我们找到了 RFC3339 = nil { panic(err) } } // RFC3339ToCSTLayout convert rfc3339 value to china standard time layout

    4.7K30发布于 2020-11-13
  • 来自专栏JetpropelledSnake

    Prometheus监控学习笔记之在 HTTP API 中使用 PromQL

    "errorType": "<string>", "error": "<string>" } 输入时间戳可以由 RFC3339 格式或者 Unix 时间戳提供,后面可选的小数位可以精确到亚秒级别。 time=<rfc3339 | unix_timestamp> : 用于指定用于计算 PromQL 的时间戳。可选参数,默认情况下使用当前系统时间。 start=<rfc3339 | unix_timestamp> : 起始时间戳。 end=<rfc3339 | unix_timestamp> : 结束时间戳。 start=<rfc3339 | unix_timestamp> : 起始时间戳。 end=<rfc3339 | unix_timestamp> : 结束时间戳。

    3.3K30发布于 2019-03-11
  • 来自专栏k8s技术圈

    Prometheus 二次开发之 API 接口

    t ime=<rfc3339 | unix_timestamp> *查询的时间戳,可选。 timeout=*超时时间,可选。默认为启动参数-query.timeout标志的值,并由该标志的值限制。 start=<rfc3339 | unix_timestamp>*开始时间戳,必选。 end=<rfc3339 | unix_timestamp>*结束时间戳,必选。 start=<rfc3339 | unix_timestamp>*启动时间戳。 end=<rfc3339 | unix_timestamp>*结束时间戳。

    7.2K30发布于 2021-05-17
  • 来自专栏全栈程序员必看

    influxdb 文档_时序数据库 应用场景

    measurements; -- 查询10条数据 select * from measurement_name limit 10; -- 数据中的时间字段默认显示的是一个纳秒时间戳,改成可读格式 precision rfc3339 ; -- 之后再查询,时间就是rfc3339标准格式 -- 或可以在连接数据库的时候,直接带该参数 influx -precision rfc3339 -- 查看一个measurement中所有的tag

    1.7K20编辑于 2022-11-09
  • 来自专栏源码之路

    「influxDB 原理与实践(二)」详解influxDB的写入与查询

    precision命令 指定查询和写入的时间戳的格式/精度,支持rfc3339(YYYY-MM-DDTHH:MM:SS.nnnnnnnnnZ)、h(小时)、m(分)、s(秒)、ms(毫秒)、u(微秒) 设置命令 precision rfc3339 设置到h(小时)级别,precision h 设置到ns(纳秒)级别,precision ns pretty,开启json格式的漂亮打印 format 3.9.1 绝对时间 可以通过rfc3339时间字符串或Epoch时间来指定绝对时间。 rfc3339时间字符串如下: ? 其中,.nnnnnnnnnZ为可选,默认为000000000 简化版rfc3339时间字符串如下: ? 其中,HH:MM:SS.nnnnnnnnnZ为可选,默认全为0 ? ? ?

    10.2K20发布于 2020-09-04
  • 来自专栏我的小碗汤

    三大示例实战 Prometheus API 使用

    time=<rfc3339 | unix_timestamp> :评估时间戳,可选参数。 start=<rfc3339 | unix_timestamp>:开始时间戳。 end=<rfc3339 | unix_timestamp> :结束时间戳。

    1.7K40编辑于 2023-03-20
  • 来自专栏东风微鸣技术博客

    Prometheus AlertManager 生产实践-直接根据 to_email label 发 alert 到对应邮箱

    ... }, "annotations": { "<labelname>": "<labelvalue>", }, "startsAt": "<rfc3339 >", "endsAt": "<rfc3339>", "generatorURL": "<generator_url>" }, ... ] 每个 alert 都提供 email_to

    77830编辑于 2022-12-01
  • 来自专栏小灰灰

    Influx Sql系列教程零:安装及influx-cli使用姿势介绍

    format json csv column 格式化输出结果 -host localhost influxdb提供访问的域名或ip -port 8086 influxdb提供访问的端口号 -precisoin rfc3339 注意pretty输入一次表示开启,再输入一次表示关闭 d. precision 时间戳格式化,对人更友好的显示方式 直接输入: precision rfc3339 ?

    2.6K30发布于 2019-08-21
  • 来自专栏caoayu的分享

    Go各时间字符串的解析

    15:04:05 MST" RFC1123Z = "Mon, 02 Jan 2006 15:04:05 -0700" // RFC1123 with numeric zone RFC3339 预定义的布局ANSIC,UnixDate,RFC3339等描述了参考时间的标准和便捷表示形式。有关格式和参考时间的定义的更多信息,请参见ANSIC文档以及此程序包定义的其他常量。

    1.8K52发布于 2020-09-23
  • 来自专栏技术杂记

    Install InfluxDB

    -precision 'rfc3339|h|m|s|ms|u|ns' Precision specifies the format of the timestamp: rfc3339, database 'metrics' -host 'localhost' -port '8086' [root@much ~]# 连接数据库 [root@much ~]# influx -precision rfc3339 responses: json, csv, or column precision <format> specifies the format of the timestamp: rfc3339 be found at: https://docs.influxdata.com/influxdb/latest/query_language/spec/ > -precision rfc3339

    1.2K10发布于 2021-08-11
  • 来自专栏Go与云原生

    golang 中的时间处理

    在 golang 中有一个很重要的 格式化时间的字符串 2006-01-02T15:04:05Z07:00 , 这个也是 golang 默认时间模版模版中的 time.RFC3339 RFC3339 2021-08-25T22:15:47+08:00 t.MarshalXXX() ([]byte,error) ` t.MarshalText() 与 t.MarshalJSON 默认使用的是 RFC3339

    1.2K30编辑于 2022-12-24
  • 来自专栏Devops专栏

    12. InfluxDB 数据的备份与还原

    -start <2015-12-24T08:12:23Z> # 设置备份数据的时间起点(RFC3339格式),不兼容-since。 例:-start 2015-12-24T08:12:23Z Include all points starting with specified timestamp (RFC3339 -end <2015-12-24T08:12:23Z> # 排除指定时间戳记(RFC3339格式)之后的所有结果,不兼容-since。 -since <2015-12-24T08:12:23Z> # 在指定的时间戳记RFC3339格式之后执行增量备份。-start除非有旧版备份支持,否则请改用。 Create an incremental backup of all points after the timestamp (RFC3339 format).

    6.7K20发布于 2020-06-18
  • 来自专栏Devops专栏

    1. Centos7 下 InfluxDB 从安装开始到入门

    version: 1.7.2 Enter an InfluxQL query > exit root@d2918dc47850:/# root@d2918dc47850:/# influx -precision rfc3339 在上面的示例中,rfc3339告诉InfluxDB以RFC3339格式(YYYY-MM-DDTHH:MM:SS.nnnnnnnnnZ)返回时间戳。 现在已经创建了mydb数据库,可以SHOW DATABASES语句显示所有现有数据库: root@d2918dc47850:/# influx -precision rfc3339 Connected

    2.1K10编辑于 2022-01-14
  • 来自专栏kl的专栏

    WordPress JSON REST API简单介绍及使用

    日期应该是一个 RFC3339 时间戳(http://tools.ietf.org/html/rfc3339). 例如: 2014-01-01T12:20:52Z. 默认为本地日期和时间. (string) optional date_gmt – 文章发布的UTC日期和时间,日期应该为一个 RFC3339 时间戳. 例如: 201401-01T12:20:52Z.

    2.6K10编辑于 2023-11-17
  • 来自专栏Devops专栏

    InfluxDB 数据的备份与还原

    -start <2015-12-24T08:12:23Z> # 设置备份数据的时间起点(RFC3339格式),不兼容-since。 例:-start 2015-12-24T08:12:23Z Include all points starting with specified timestamp (RFC3339 -end <2015-12-24T08:12:23Z> # 排除指定时间戳记(RFC3339格式)之后的所有结果,不兼容-since。 -since <2015-12-24T08:12:23Z> # 在指定的时间戳记RFC3339格式之后执行增量备份。-start除非有旧版备份支持,否则请改用。 Create an incremental backup of all points after the timestamp (RFC3339 format).

    3.7K30编辑于 2022-01-14
  • 来自专栏丑胖侠

    go语言模板(template)中日期格式化

    15:04:05 MST" RFC1123Z = "Mon, 02 Jan 2006 15:04:05 -0700" // RFC1123 with numeric zone RFC3339

    1.1K10编辑于 2022-05-06
  • 来自专栏Devops专栏

    Centos7 下 InfluxDB 从安装开始到入门

    : 1.7.2 Enter an InfluxQL query > exit root@d2918dc47850:/# root@d2918dc47850:/# influx -precision rfc3339 在上面的示例中,rfc3339告诉InfluxDB以RFC3339格式(YYYY-MM-DDTHH:MM:SS.nnnnnnnnnZ)返回时间戳。 现在已经创建了mydb数据库,可以SHOW DATABASES语句显示所有现有数据库: root@d2918dc47850:/# influx -precision rfc3339 Connected

    1.5K20发布于 2019-05-31
  • 来自专栏Devops专栏

    6. influxDB 常用操作

    responses: json, csv, or column precision <format> specifies the format of the timestamp: rfc3339 max_value ---- --------- 1551695447000000000 100 > 设置时间显示格式 在influxDB的CLI界面执行precision rfc3339 > precision rfc3339 > select * from CPU_ALL where time >= '2018-11-23 14:30:39' and time <= '2019-11

    61120编辑于 2022-01-14
  • 来自专栏Golang语言社区

    Git 项目推荐 | Go 语言读写 INI 文件工具包

    cfg.Section("").Key("TIME").MustTimeFormat(time.RFC3339) v = cfg.Section("").Key("TIME").MustTime() // RFC3339 ").MustTimeFormat(time.RFC3339, time.Now()) v = cfg.Section("").Key("TIME").MustTime(time.Now()) // RFC3339 time2, time3})v = cfg.Section("").Key("TIME").InTime(time.Now(), []time.Time{time1, time2, time3}) // RFC3339 time.Now(), minTime, maxTime)vals = cfg.Section("").Key("TIME").RangeTime(time.Now(), minTime, maxTime) // RFC3339

    6.1K120发布于 2018-03-20
  • 来自专栏颇忒脱的技术博客

    详解Prometheus range query中的step参数

    start=<rfc3339 | unix_timestamp>: 时间范围的开始。 end=<rfc3339 | unix_timestamp>: 时间范围的结束。

    9K41发布于 2019-01-14
领券