3

【笔记】Go语言的时间

 1 year ago
source link: https://loli.fj.cn/2023/01/20/Go%E8%AF%AD%E8%A8%80%E7%9A%84%E6%97%B6%E9%97%B4/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

【笔记】Go语言的时间

Go语言的时间学习笔记

import "time"

获取当前时间

time.Now()

以秒为单位

time.Now().Second()

以纳秒为单位

time.Now().Nanosecond()

哔哩哔哩——喔咔咔耶耶

© 2023 绯鞠
3669 4016

本站已稳定运行 3 年 62 天 13 小时 56 分钟 18 秒

欢迎阅读「【笔记】Go语言的时间 | 绯鞠的博客」


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK