-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathhelper.py
42 lines (25 loc) · 903 Bytes
/
helper.py
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
32
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/env python
# -*- coding: utf-8 -*-
class Helper():
def nice_time(self,string):
value = int(string)
if value < 10:
newTime = "0" + str(value)
return newTime
return str(value)
def split_string_stunden(self,string):
# Split the string based on space delimiter
list_string = string.split(',')
return list_string
def split_string(self,string):
# Split the string based on space delimiter
list_string = string.split(',), (')
return list_string
def split_string_time(self,string):
# Split the string based on space delimiter
list_string = string.split('datetime.datetime')
return list_string
def split_string_minuten(self,string):
# Split the string based on space delimiter
list_string = string.split(')')
return list_string