Skip to content

Commit

Permalink
add example of timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
PacificDou committed Nov 28, 2024
1 parent 3eee5b3 commit 54412a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roboflow/deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ def is_valid_ISO8601_timestamp(ts):

def check_from_to_timestamp(from_timestamp, to_timestamp, default_timedelta):
if from_timestamp and not is_valid_ISO8601_timestamp(from_timestamp):
print("Please provide a valid from_timestamp in ISO8601 format")
print("Please provide a valid from_timestamp in ISO8601 format (YYYY-MM-DD HH:MM:SS)")
exit(1)

if to_timestamp and not is_valid_ISO8601_timestamp(to_timestamp):
print("Please provide a valid to_timestamp in ISO8601 format")
print("Please provide a valid to_timestamp in ISO8601 format (YYYY-MM-DD HH:MM:SS)")
exit(1)

time_now = datetime.now().astimezone() # local timezone
Expand Down

0 comments on commit 54412a8

Please sign in to comment.