Completed
Push — master ( d9da1e...a7554a )
by Tomaz
02:11
created

dt_to_timestamp()   A

Complexity

Conditions 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 3
rs 10
cc 1
1
import time
2
3
__all__ = [
4
    'dt_to_timestamp'
5
]
6
7
def dt_to_timestamp(dt):
8
    timestamp = int(time.mktime(dt.timetuple()))
9
    return timestamp
10