Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- mutex
- range
- 책
- Python
- channel
- 리뷰
- write
- tcp
- Callback
- Golang
- C
- install
- windows
- bitcoin
- API
- go
- File
- Linux
- FOR
- json
- window
- package
- go언어
- c++
- 영화
- http
- Sync
- JavaScript
- GO 언어
- Close
Archives
- Today
- Total
목록AddDate (1)
Code Habit
Golang ) package time
time 패키지는 현재 시간을 구하거나, 일정한 시간을 측정하는 등 시간 관련 기능을 다룰 때 사용한다. - 현재 시간 구하기 & 포맷 변경 // main.go package main import ( "fmt" "time" ) func main() { // 현재 시간 now := time.Now() fmt.Println(now) // 2020-06--19 14:45:56.1516017 +0900 KST m=+0.006982201 // yyyy-mm-dd hh:mm:ss 형식으로 포맷 custom := now.Format("2006-01-02 15:04:05") fmt.Println(custom) // 2020-06-19 14:45:56 custom = now.Format("2006-01-02") fmt...
카테고리 없음
2020. 6. 16. 10:23