본문 바로가기 메뉴 바로가기

끄적 끄적 로깅! 로깅!

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

끄적 끄적 로깅! 로깅!

검색하기 폼
  • All (158)
    • 리뷰 (7)
    • 운영체제 (37)
    • 프로그래밍 (34)
    • 엔지니어링 (43)
    • 빅데이터 (9)
    • 머신러닝 (1)
    • 프로젝트 (1)
    • 운영관리 (20)
    • 보안 (2)
    • 유틸 (4)
  • 방명록

datetime to time (1)
Python 시간 변환

>>> import time >>> from datetime import datetime >>> time.time() 1345556352.4712839 >>> time.localtime() (2012, 8, 21, 22, 39, 12, 1, 234, 0) >>> time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(time.time())) '2012-08-21 22:39:12' >>> int(time.mktime(datetime(2012, 8, 21, 22, 34, 34).timetuple())) 1345556074 >>> datetime(*time.strptime("2012-08-21 22:34:34", "%Y-%m-%d %H:%M:%S")[0:6]) datetime..

프로그래밍 2020. 3. 6. 21:59
이전 1 다음
이전 다음
    끄적 끄적 로깅! 로깅!
    warpmemory
    공지사항
    최근에 올라온 글
    최근에 달린 댓글
    Total
    Today
    Yesterday
    페이지
    • 추천사이트
    TAG
    • Linux
    • check
    • command
    • monitoring
    • Module
    • deview
    • PowerShell
    • File
    • 명령어
    • 번역
    • RESTful
    • apache
    • Windows
    • mysql
    • client
    • 코드
    • httpd
    • 이슈처리
    • Web
    • MariaDB
    • error
    • 예제
    • configuration
    • example
    • 외부링크
    • code
    • engineering
    • Python
    • limits
    • Ansible
    more
    «   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
    글 보관함

    Blog is powered by Tistory / Designed by Tistory

    티스토리툴바