Skip to content

Commit

Permalink
Update clients/date-to-timestamp-conversion.md
Browse files Browse the repository at this point in the history
Style fixes

Co-authored-by: Nick Woolmer <[email protected]>
  • Loading branch information
javier and nwoolmer authored Aug 8, 2024
1 parent 0e67cce commit 6d8c1df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clients/date-to-timestamp-conversion.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ from questdb.ingress import Sender

date_str = '2024-08-05'

# Note that since we want the timestamp, we could directly parse into a Datetime object, but for
# reference purposes we want to first have a Date object, to illustrate how to convert Date to Datetime
# We could parse the string directly into a datetime object,
# but for this example, we will show how to convert it via a date.
date_obj = datetime.strptime(date_str, '%Y-%m-%d').date()
print(f"Date object: {date_obj}")

Expand Down

0 comments on commit 6d8c1df

Please sign in to comment.