-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtime_modules.py
More file actions
50 lines (36 loc) · 1.18 KB
/
time_modules.py
File metadata and controls
50 lines (36 loc) · 1.18 KB
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
43
44
45
46
47
48
49
50
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
__synopsis__ : Tools for time related operations
__description__ :
__project__ : my_modules
__author__ : 'Samujjwal Ghosh'
__version__ :
__date__ : June 2018
__copyright__ : "Copyright (c) 2018"
__license__ : "Python"; (Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html)
__classes__ :
__variables__ :
__methods__ :
TODO : 1.
"""
import os
import sys,platform
if platform.system() == 'Windows':
sys.path.append('D:\GDrive\Dropbox\IITH\\0 Research')
sys.path.append('D:\GDrive\Dropbox\IITH\\0 Research\Datasets')
else:
sys.path.append('/home/cs16resch01001/codes')
sys.path.append('/home/cs16resch01001/datasets')
# print(platform.system(),"os detected.")
def get_date_time_tag(current_file_name=False):
from datetime import datetime
date_time = datetime.now().strftime('%Y%m%d %H%M%S')
tag = str(date_time)+"_"
if current_file_name:
tag = current_file_name+"_"+str(date_time)+"_"
return tag
date_time_tag = get_date_time_tag()
def main():
pass
if __name__ == "__main__": main()