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 | 29 | 30 |
Tags
- postgres
- Jupyter
- insert
- Jupyter Notebook
- sshpass
- openpyxl
- perfect
- port forwarding
- ftp
- SWIFT
- mysql
- PYTHON
- create table
- 28015
- ubuntu
- nGrinder
- kitura
- ssh
- appium
- centos
- appium server
- nmap
- postgresql
- Materials
- STF
- rethinkdb
- GoCD
- STF_PortForwarding
- nohup
- 실행권한
Archives
- Today
- Total
목록timestamp (1)
don't stop believing
timestamp 출력 함수
성능 테스트나 간단한 python 스크립트를 만들때 자주 timestamp를 사용합니다. python에서 timestamp를 출력하는 여러가지 방법이 있겠지만 몇가지 자주 사용하는 걸 기록하겠습니다. 아래 코드는 python2와 3에서 사용할 수 있습니다. import time, datetime def makeTS_01(): return str(int(time.time())) def makeTS_02(): i = datetime.datetime.now() dt = datetime.datetime(i.year, i.month, i.day, i.hour, i.minute, i.second) return str(int(time.mktime(dt.timetuple()))) def convertDate(ts): ..
Python/Basic
2017. 12. 27. 16:39