-
Notifications
You must be signed in to change notification settings - Fork 69
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
Two date formats in use #50
Comments
I agree. There's no good way to specify which format to use via the command line. I don't know anything about ical either. |
It is fine by me if it can be implemented more generically and simply. This simply happens to be the format expected by the toggl API and I didn't have the knowledge to transform it properly myself. As long as you can specify ISO dates, I'm happy. If it could transform even stuff like 'last wednesday' and 'yesterday', so much the better. I would certainly like to learn the necessary bits, but right now I don't possess them. I initially tried to use DATETIME, but failed miserably. |
Looks like possibly the 'parse_local_datetime_str' function of the DateAndTime object would do, but it does not seem to have the flexibility that the Linux 'date' command does. Maybe I can try and see if I can implement it with this, if none of you beat me to it ;) |
After the inclusion of the
ical
feature in #43, the cli looks as though it supports two different datetime formats per--help
.DATETIME
, the format existing prior toical
, which is I believe local time and is converted to UTC+TZ via theDateAndTime
object, and theical
specified starttime/endtime ofYYYY-MM-DDThh:mm:ss+TZ:00
.For consistency there should probably be only one DATETIME format. I'm not sure why
ical
needs the full TZ specifier (and I don't know howical
is supposed to work), perhaps @martinm76 can chime in.The text was updated successfully, but these errors were encountered: