drvvvuyia15070493
2016-09-14 14:07如何提取Unix时间戳并获取日期
I have an integer
x := 1468540800
I want to fetch the date out of this unix timestamp in Golang. I have tried time.ParseDuration
but looks like that's not the correct way to extract date out of this. Converstion should happen like this http://www.unixtimestamp.com/index.php
I intend to convert into in ISO 8601 format may be. I want string like 2016-09-14
.
- 点赞
- 回答
- 收藏
- 复制链接分享
4条回答
为你推荐
- 如何提取Unix时间戳并获取日期
- it技术
- 互联网问答
- IT行业问题
- 计算机技术
- 编程语言问答
- 4个回答
- 获取3年前的Golang时间戳记?
- unix-timestamp
- time
- 1个回答
- 如何使用Golang将UTC时间转换为Unix时间戳
- it技术
- 互联网问答
- IT行业问题
- 计算机技术
- 编程语言问答
- 1个回答
- 查找一段时间内每个月的第一天和最后一天
- unix-timestamp
- php
- date
- 1个回答
- PHP解析日期与Timezone + Offset使用strtotime()
- datetime
- php
- 1个回答
换一换