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

New library. RPA.Calendar #694

Merged
merged 20 commits into from Mar 9, 2023
Merged

New library. RPA.Calendar #694

merged 20 commits into from Mar 9, 2023

Conversation

mikahanninen
Copy link
Member

@mikahanninen mikahanninen commented Nov 15, 2022

TODO

  • Update library documentation
  • Update keyword parameter documentation
  • Add keyword examples
  • Update release notes

Will add keywords:

  • Create datetime
  • First business day of the month
  • Get current date
  • Is time before than
  • Last business day of the month
  • Order list of dates
  • Return next business day
  • Return previous business day
  • Set business days
  • Set locale
  • Time difference
  • Time difference in months
  • Time difference in days
  • Time difference in hours
  • Time difference in minutes
  • Time now
  • Add custom holidays

For time comparison a special keyword format is supported allowing use of < or > characters in comparison keyword. All the following examples will work.

${is_it_before}=    Is Time 19:30 < 14:00
${is_it_after}=    Is Time 2023-01-23 09:01 > 2023-01-23 04:25
${first_date}=    Set Variable    04:25
${second_date}=    Set Variable    09:01
${is_it_before}=    Is Time ${first_date} < ${second_date}

TBD. Should we include Robot Framework DateTime library keywords in this library?

@mikahanninen mikahanninen linked an issue Nov 15, 2022 that may be closed by this pull request
@mikahanninen mikahanninen self-assigned this Nov 15, 2022
@mikahanninen mikahanninen added the feature New functionality to add label Nov 15, 2022
@mikahanninen mikahanninen added this to In progress in RPA Framework via automation Nov 15, 2022
@mikahanninen mikahanninen changed the title New library. RPA.DateTime New library. RPA.Calendar Mar 7, 2023
@mikahanninen mikahanninen marked this pull request as ready for review March 9, 2023 07:55
@mikahanninen mikahanninen merged commit d654601 into master Mar 9, 2023
12 checks passed
RPA Framework automation moved this from In progress to Waiting for release Mar 9, 2023
@mikahanninen mikahanninen deleted the feature/new-date-library branch March 9, 2023 16:49
@mikahanninen mikahanninen moved this from Waiting for release to Done in RPA Framework Mar 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New functionality to add
Projects
Development

Successfully merging this pull request may close these issues.

Add library for common date handling operations
1 participant