NetLogo / NetLogo/Time-Extension

difference-between in DAYOFYEAR reports values > 365

Open
#18 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

documentation
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

  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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.