-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #99 from ascmitc/dev/utc-filename
fixing manifest filename to be UTC
- Loading branch information
Showing
2 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from packaging import version | ||
|
||
from ascmhl.utils import datetime_now_filename_string | ||
import datetime | ||
import os, time | ||
|
||
|
||
def test_time(): | ||
datetime_now_filename = datetime_now_filename_string() | ||
datetime_now_filename_reference = datetime.datetime.strftime(datetime.datetime.utcnow(), "%Y-%m-%d_%H%M%S") | ||
|
||
print("datetime_now_filename: " + datetime_now_filename) | ||
print("datetime_now_filename_reference: " + datetime_now_filename_reference) | ||
|
||
# seems always to be working, as tests run in UTC ? | ||
assert datetime_now_filename == datetime_now_filename_reference |