-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
parse method does not allow specifying timezone #72
Comments
This seems like a good request. How would you want to handle the case where an offset/timezone is provided in the parse string and as an argument? For example: delorean.parse('08/18/15 16:51:36 -0800', timezone='US/Pacific') It seems like the timezone parameter should override whatever is in the string. Thoughts? |
I agree, any passed in parameter should override the timezone in the parsed string. (One possible use case is if you are taking the string to parse from somewhere else, and you want to override the timezone). |
I've got a working fix for this in a branch I think will be released as 0.6.0. |
@mlew I will be taking a look at it tonight. |
[Solved] Hi @myusuf3 This Exception is show it: I have to upgrade from github ?? or from pip because in the master branch i can see the change. |
Looks like 0.6 hasn't been uploaded to cheeseshop. @myusurf3, can you take On Thu, Nov 12, 2015 at 8:49 AM, Dharwin Perez [email protected]
|
@mlew lets double check docs when you get a chance i want to cut a release, you think its stable enough to cut 1.0. Lets chat. |
It would be useful if the
parse
method allowed specifying a timezone.For example, I'm trying to parse datetime strings from
iostat
output. They look like this:Note that there is no timezone information specified. However, I know the timezone based on the timezone of the host system.
Hence, it would be nice if I could use Delorean's
parse
method, whilst also specifying a timezone. For example:The text was updated successfully, but these errors were encountered: