Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escape special characters +-&|!(){}[]^"~*?:\ - e.g. \+ \* \!
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
 
Answered
Importing pytz to use timezones

For a project with Python, I need to get the current date and time for when a specific operation is performed. This date and time must be in EST. To do this, typically I would use pytz to make use of timezones with Python. When I push to the pipeline for my branch in GitLab, though, it fails the pipeline because it says pytz is not a recognized module. Is there some way to enable pytz or to use timezones at all with the SDK?

Thank you,
Ethan

Posted 3 years ago
Votes Newest

Answers


Ethan, you must add any packages you want to the requirements.txt file.

if you type the command "pip freeze", it will show you a listing of all the modules and versions. You will put this in the requirements.txt file. ex: "pytz==2022.5"

Posted 3 years ago
95 Views
1 Answer
3 years ago
3 years ago
Tags