| Conditions | 1 |
| Total Lines | 10 |
| Code Lines | 2 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | # -*- coding: utf-8 -*- |
||
| 36 | def current_date_for_filename() -> str: |
||
| 37 | """ |
||
| 38 | ISO8601 current date, adapted to be used in filename (for |
||
| 39 | webdav feature for example), with trouble-free characters. |
||
| 40 | :return: current date as string like "2018-03-19T15.49.27.246592" |
||
| 41 | """ |
||
| 42 | # INFO - G.M - 19-03-2018 - As ':' is in transform_to_bdd method in |
||
| 43 | # webdav utils, it may cause trouble. So, it should be replaced to |
||
| 44 | # a character which will not change in bdd. |
||
| 45 | return datetime.datetime.now().isoformat().replace(':', '.') |
||
| 46 |
The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:
If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.