knify 1.8.47__tar.gz → 1.8.48__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: knify
3
- Version: 1.8.47
3
+ Version: 1.8.48
4
4
  Summary: Development tools for python
5
5
  Home-page: https://github.com/qicongsheng/knify
6
6
  Author: qicongsheng
@@ -14,6 +14,10 @@ def now() -> datetime:
14
14
  return datetime.datetime.now()
15
15
 
16
16
 
17
+ def now_str(format: str = FORMAT_YYMMDDHMS) -> str:
18
+ return date_to_str(now(), format)
19
+
20
+
17
21
  def date_to_str(date_obj: datetime, format: str = FORMAT_YYMMDDHMS) -> str:
18
22
  if type(date_obj) == datetime.timedelta:
19
23
  return (datetime.datetime(1970, 1, 1) + date_obj).strftime(format)
@@ -8,7 +8,7 @@ def get_pip_name():
8
8
 
9
9
 
10
10
  def get_version():
11
- return '1.8.47'
11
+ return '1.8.48'
12
12
 
13
13
 
14
14
  def print_version():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: knify
3
- Version: 1.8.47
3
+ Version: 1.8.48
4
4
  Summary: Development tools for python
5
5
  Home-page: https://github.com/qicongsheng/knify
6
6
  Author: qicongsheng
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes