{"id":13430420,"url":"https://github.com/FluentDateTime/FluentDateTime","last_synced_at":"2025-03-16T05:30:52.297Z","repository":{"id":4185725,"uuid":"5303066","full_name":"FluentDateTime/FluentDateTime","owner":"FluentDateTime","description":"Allows cleaner DateTime expressions and operations","archived":false,"fork":false,"pushed_at":"2025-03-12T21:38:27.000Z","size":936,"stargazers_count":695,"open_issues_count":1,"forks_count":61,"subscribers_count":23,"default_branch":"main","last_synced_at":"2025-03-12T22:28:55.435Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C#","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/FluentDateTime.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"license.txt","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},"funding":{"github":"SimonCropp"}},"created_at":"2012-08-05T11:36:07.000Z","updated_at":"2025-03-12T21:38:30.000Z","dependencies_parsed_at":"2024-01-02T22:44:43.692Z","dependency_job_id":"e7233ae6-4670-4bb7-8604-2af13059881f","html_url":"https://github.com/FluentDateTime/FluentDateTime","commit_stats":{"total_commits":209,"total_committers":12,"mean_commits":"17.416666666666668","dds":"0.29186602870813394","last_synced_commit":"12f24226ac70b02fd0cd00f6297715ba1248504a"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FluentDateTime%2FFluentDateTime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FluentDateTime%2FFluentDateTime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FluentDateTime%2FFluentDateTime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FluentDateTime%2FFluentDateTime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FluentDateTime","download_url":"https://codeload.github.com/FluentDateTime/FluentDateTime/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243830912,"owners_count":20354848,"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":[],"created_at":"2024-07-31T02:00:53.315Z","updated_at":"2025-03-16T05:30:50.933Z","avatar_url":"https://github.com/FluentDateTime.png","language":"C#","funding_links":["https://github.com/sponsors/SimonCropp"],"categories":["Frameworks, Libraries and Tools","C\\#","框架, 库和工具","Date and Time","Bibliotecas úteis"],"sub_categories":["Date and Time","日期和时间",".NET"],"readme":"# \u003cimg src=\"/src/icon.png\" height=\"30px\"\u003e FluentDateTime\r\n\r\n[![Build status](https://ci.appveyor.com/api/projects/status/me89rbu5iv976k2q/branch/master?svg=true)](https://ci.appveyor.com/project/SimonCropp/fluentdatetime)\r\n[![NuGet Status](https://img.shields.io/nuget/v/FluentDateTime.svg?label=FluentDateTime\u0026cacheSeconds=86400)](https://www.nuget.org/packages/FluentDateTime/)\r\n\r\nAllows cleaner DateTime expressions and operations.\r\n\r\n**See [Milestones](../../milestones?state=closed) for release notes.**\r\n\r\nInspired by Ruby DateTime Extensions\r\n\r\n * [Extensions To Datetime](http://edgeguides.rubyonrails.org/active_support_core_extensions.html#extensions-to-datetime)\r\n * [Extensions To Time](http://edgeguides.rubyonrails.org/active_support_core_extensions.html#extensions-to-time)\r\n\r\n\r\n## NuGet\r\n\r\nhttps://nuget.org/packages/FluentDateTime/\r\n\r\n\r\n## Usage\r\n\r\nHere is some examples of use cases\r\n\r\n```csharp\r\n// DateTime operations\r\nDateTime.Now - 1.Weeks() - 3.Days() + 14.Minutes()\r\nDateTime.Now + 5.Years()\r\n\r\n// Relative DateTime evaluations\r\n3.Days().Ago()\r\n2.Days().Since(DateTime.Now)\r\n\r\n// Fluent DateTime estimations\r\nDateTime.Now.NextDay()\r\nDateTime.Now.NextYear()\r\nDateTime.Now.PreviousYear()\r\nDateTime.Now.WeekAfter()\r\nDateTime.Now.Midnight()\r\nDateTime.Now.Noon()\r\n\r\n// Current DateTime manipulation\r\nDateTime.Now.SetTime(11, 55, 0)\r\n\r\n// DateTime expressions\r\n2022.Mar(23) // (implicitly convertible to DateTime and DateTimeOffset)\r\n2022.March(23).At(10, 26)\r\n```\r\n\r\n_See [Unit Tests](https://github.com/FluentDateTime/FluentDateTime/tree/master/src/Tests) in the project for more details._\r\n\r\n\r\n## Icon\r\n\r\n[Calendar](http://thenounproject.com/noun/calendar/#icon-No404) from The Noun Project\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFluentDateTime%2FFluentDateTime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FFluentDateTime%2FFluentDateTime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFluentDateTime%2FFluentDateTime/lists"}