Skip to content
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

Add timespan selection helper options for the report and log commands #130

Merged

Conversation

SpotlightKid
Copy link
Contributor

  • Shortcut options (--year, --month, --week, --day) were added
    to the 'report' and 'log' command. They are intended for an easier
    timespan selection for common use cases (e.g., how much time did
    I spent on my project during the current year, month, week or day?)
    without needing to use the appropriate --from and --to options.
  • Shortcut options are mutually exclusive with each other and with the
    --from and --to options.
  • A new watson.utils.get_start_time_for_period() function helps to
    determine the datetime (Arrow object) for the start of the current
    year, month, week or day.

- Shortcut options (`--year`, `--month`, `--week`, `--day`) were added
  to the 'report' and 'log' command. They are intended for an easier
  timespan selection for common use cases (e.g., how much time did
  I spent on my project during the current year, month, week or day?)
  without needing to use the appropriate `--from` and `--to` options.

- Shortcut options are mutually exclusive with each other and with the
  `--from` and `--to` options.

- A new `watson.utils.get_start_time_for_period()` function helps to
  determine the datetime (Arrow object) for the start of the current
  year, month, week or day.
@SpotlightKid SpotlightKid merged commit e4e006f into jazzband:master Jul 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants