NetLogo / NetLogo/Time-Extension

Documentation: logotimes of type "DAY" are based on year 2000

Open
#16 0 comments 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

Add to the documentation explaining logotimes of type "DAY" that calculations for these variables assume they occur in year 2000, which is a leap year. Therefore (a) if you use time:get or time:show to report the year of a DAY variable, it will report 2000, and (b) calculations using DAY variables assume that February 29th exists.

For example, "time:show (time:plus (time:create "02-28") 1 "DAY") "MM-dd"" reports the result "02-29".
and "time:difference-between (time:create "02-01") (time:create "03-01") "DAY"" reports 29.

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

Locate the documentation for the Time Extension commands named in the issue, including time:get, time:show, time:create, time:plus, and time:difference-between. Add the year-2000 and leap-year behavior with the supplied examples, then verify that the documentation accurately describes the reported outputs.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.