English 中文(简体)
Why is the time string returned by the cnosdb query different from the RFC3339 format of golang?
原标题:

golang code:

func main() {
    fmt.Println(time.Now().Format(time.RFC3339))
    fmt.Println(time.Now().UTC().Format(time.RFC3339))
}

golang output:

2023-09-01T10:56:32+08:00
2023-09-01T02:56:32Z

cnosdb query result:

| cnosdb         | telegrafbfr   | 2023-09-01T02:15:00 | 0        | 1000    |

Does cnosdb have any considerations for this implementation?

问题回答

暂无回答




相关问题
minimum work size of a goroutine [closed]

Does anyone know approximately what the minimum work size is needed in order for a goroutine to be beneficial (assuming that there are free cores for the work to be offloaded to)?

How do you get the terminal size in Go?

How do I get the terminal size in Go. In C it would look like this: struct ttysize ts; ioctl(0, TIOCGWINSZ, &ts); But how to i access TIOCGWINSZ in Go

What do you use to write Go [closed]

I know its a bit too early, but I ve been trying out Go (Google s Programming Language) and its kindof annoying to write code in gedit. So, my question: What do you use to experiment with Go?

Shared memory vs. Go channel communication

One of Go s slogans is Do not communicate by sharing memory; instead, share memory by communicating. I am wondering whether Go allows two different Go-compiled binaries running on the same machine to ...

Embedding instead of inheritance in Go

What is your opinion of this design decision? What advantages does it have and what disadvantages? Links: Embedding description

热门标签