Completed
Pull Request — master (#127)
by Jasper
01:07
created

Clock.getNowString()   A

Complexity

Conditions 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %
Metric Value
cc 1
dl 0
loc 3
rs 10
1
import datetime
2
3
4
class Clock(object):
5
6
    def getNowString(self):
7
        now = datetime.datetime.now()
8
        return str(now).replace(' ','_').replace(':','-').split('.')[0]
9