We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cb3bea commit c516db0Copy full SHA for c516db0
README.md
@@ -1268,15 +1268,9 @@ with pycallgraph.PyCallGraph(output=graph):
1268
#### Utility code for unique PNG filenames:
1269
```python
1270
def get_filename():
1271
- time_str = get_current_datetime_string()
+ from datetime import datetime
1272
+ time_str = datetime.now().strftime('%Y%m%d%H%M%S')
1273
return f'profile-{time_str}.png'
-
1274
-def get_current_datetime_string():
1275
- now = datetime.datetime.now()
1276
- return get_datetime_string(now)
1277
1278
-def get_datetime_string(a_datetime):
1279
- return a_datetime.strftime('%Y%m%d%H%M%S')
1280
```
1281
1282
0 commit comments