본문 바로가기

Code Habit

검색하기
Code Habit
프로필사진 코드베어

  • 분류 전체보기 (203)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
일 월 화 수 목 금 토
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 29 30 31
Tags
  • 영화
  • Golang
  • 리뷰
  • bitcoin
  • windows
  • write
  • Callback
  • Linux
  • range
  • package
  • 책
  • json
  • API
  • FOR
  • go언어
  • window
  • Python
  • install
  • GO 언어
  • JavaScript
  • tcp
  • Close
  • channel
  • File
  • go
  • mutex
  • Sync
  • C
  • c++
  • http
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록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
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바