{"id":16086592,"url":"https://github.com/emaringolo/history","last_synced_at":"2025-04-05T14:43:11.695Z","repository":{"id":93776528,"uuid":"48151668","full_name":"eMaringolo/history","owner":"eMaringolo","description":"A collection-like object to hold and retrieve elements that are dated","archived":false,"fork":false,"pushed_at":"2022-11-03T00:21:37.000Z","size":41,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-11T11:39:52.699Z","etag":null,"topics":["pharo","smalltalk"],"latest_commit_sha":null,"homepage":null,"language":"Smalltalk","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eMaringolo.png","metadata":{"files":{"readme":"README.md","changelog":"History-Core/AbstractHistory.class.st","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-12-17T04:09:01.000Z","updated_at":"2022-07-04T15:23:23.000Z","dependencies_parsed_at":"2023-03-01T23:30:18.643Z","dependency_job_id":null,"html_url":"https://github.com/eMaringolo/history","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eMaringolo%2Fhistory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eMaringolo%2Fhistory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eMaringolo%2Fhistory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eMaringolo%2Fhistory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eMaringolo","download_url":"https://codeload.github.com/eMaringolo/history/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247353675,"owners_count":20925325,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["pharo","smalltalk"],"created_at":"2024-10-09T13:24:28.030Z","updated_at":"2025-04-05T14:43:11.673Z","avatar_url":"https://github.com/eMaringolo.png","language":"Smalltalk","funding_links":[],"categories":[],"sub_categories":[],"readme":"Introduction\r\n=========\r\n\r\nThis package provides the utility class `History` that can help when dealing with dated objects. It is, objects that have a magnitude like Date, Time, DateAndTime, etc. and can be sorted historically according to this or any other magnitude.\r\n\r\nSo when you have to query for some element at certain date, the History class will perform the lookup.\r\nBut the added value is that the lookup can be for a matching date or if you need to obtain an element that applies for a certain date, it will retrieve the closest to the queried date.\r\n\r\nE.g. If the History contain aPermit dated 2015-03-01 14:00, and no other aftewards, then `aHistory at: '2015-05-15 00:00' asDateAndTime` will return the one from March.\r\n\r\nFor most purposes the `History` class can act as a `Collection`, supporting enumeration, adding, removing elements, filtering, etc. (it is `#do:`, `#detect:ifNone:`, etc.)\r\n\r\nSee the tests for more examples of how to use it.\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femaringolo%2Fhistory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femaringolo%2Fhistory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femaringolo%2Fhistory/lists"}