NetLogo / NetLogo/Time-Extension
difference-between in DAYOFYEAR reports values > 365
Nobody has claimed this yet.
- Dominant language
- Scala
- Stars
- 8
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
I think this is a bug; if not, a documentation issue. This statement:
time:difference-between logotime1 logotime2 "DAYOFYEAR"
produced a value of -29219 when logotime1 is 12/18/2315 and logotime2 is 12/18/2235
If the difference in "DAYOFYEAR" units is the difference in the julian date, then it should be between -365 and +365. Instead it seems that we are getting the difference in total days.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the time:difference-between statement with the dates given, then locate the implementation and documentation for the DAYOFYEAR unit. Determine whether the intended result is a bounded day-of-year difference or a total-day difference, and consider the issue resolved when the behavior and its documented expectation are consistent.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- scala
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100