robotframework / robotframework/robotframework

DateTime: Support adding months and yeards to dates

Open
#4,890 14 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

effort: medium help wanted priority: medium
Dominant language
Python
Stars
11.9k
Forks
2.6k
Avg merge
1d 18h
Merged PRs (30d)
10

Description

Hi,
In Robot currently, we don't have the option to add months to the current data in the DateTime library.
We can now add Hours, Days, and, Years using Add Time to data.

${one_month_later} Add Time To Date ${current_date} 1 months

it we try to add the above it will not recognize as a keyword.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the DateTime library implementation and tests for the Add Time To Date keyword. Check how the existing hours, days, and years units are handled, then verify the requested month example and related date behavior with tests. Done means month addition is recognized as a supported unit without regressing the existing units.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing-qa
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.