{"id":15658900,"url":"https://github.com/dahall/timespan2","last_synced_at":"2025-05-05T16:46:34.001Z","repository":{"id":65413638,"uuid":"95980649","full_name":"dahall/TimeSpan2","owner":"dahall","description":"Library extending the .NET TimeSpan structure to be comparable, serializable, and convertible, and to support localized string formatting and parsing.","archived":false,"fork":false,"pushed_at":"2023-04-02T01:30:57.000Z","size":195,"stargazers_count":22,"open_issues_count":0,"forks_count":9,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-10T15:44:41.609Z","etag":null,"topics":["csharp","dotnet","nuget","timespan"],"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/dahall.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2017-07-01T18:17:40.000Z","updated_at":"2024-04-20T20:21:51.000Z","dependencies_parsed_at":"2024-10-23T05:49:06.621Z","dependency_job_id":"2981e06b-2cfe-4b28-bb01-8a5370ef9fe7","html_url":"https://github.com/dahall/TimeSpan2","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dahall%2FTimeSpan2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dahall%2FTimeSpan2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dahall%2FTimeSpan2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dahall%2FTimeSpan2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dahall","download_url":"https://codeload.github.com/dahall/TimeSpan2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252535818,"owners_count":21764019,"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":["csharp","dotnet","nuget","timespan"],"created_at":"2024-10-03T13:14:21.290Z","updated_at":"2025-05-05T16:46:33.977Z","avatar_url":"https://github.com/dahall.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TimeSpan2\n\u003e Library extending the .NET TimeSpan structure to be comparable, serializable, and convertible, and to support localized string formatting and parsing.\n\nThere are three public classes of note:\n* `TimeSpan2` is a wrapper around the existing `TimeSpan` structure that adds serialization, comparability, and convertibility. It can be used anywhere a TimeSpan is used.\n* `TimeSpanFormatInfo` is an `IFormatProvider` for TimeSpan instances and provides a richer set of output formats. It works similarly to DateTimeFormatInfo. If you use the TimeSpan2 structure, you can access the parsing and output functionality directly from the structure's Parse and ToString methods. A list of format strings can be found here and in the inline documentation for `TimeSpanFormatInfo`.\n* `TimeSpanPicker` is a editable ComboBox that exposes a localized list of TimeSpan instances and allows for text entry. This is only available in the `TimeSpan2` package.\n\nThis project has translations for English, Spanish, French, Italian, Russian, Chinese, and German. If anyone would like to provide translations for other languages, or better ones for those in the project, please post them in the Discussions area.\n\n## Installation\n\nThis is a standard Visual Studio 2022 solution containing the core library and control library as projects and a test harness as another project.\n\nIt is available for inclusion into .NET projects via NuGet:\n* [TimeSpan2.Core - System neutral, localized time spans.](https://www.nuget.org/packages/TimeSpan2.Core/).\n* [TimeSpan2 - WinForms control for natural language time spans](https://www.nuget.org/packages/TimeSpan2/).\n\n## Documentation\n\nFor sample code, see the [Documentation](docs\\Documentation.md).\n\n## Release History\n* 2.4.1 - Split into two packages (`TimeSpan2.Core` and `TimeSpan2`) to remove WinForms dependency from core package.\n* 2.4.0 - Added support for .NET 6.0\n* 2.3.0 - Added support for .NET Core 3.0 and 3.1\n* 2.1.6 - Added Dutch and fixed a bug\n* 2.1.5 - Added Danish\n* 2.1.4 - Added .NET version builds\n* 2.1.1 - Minor bug fixes and new languages added\n* Since 2.0.1 - Added .NET 2.0 and 4.0 assemblies and build, improved performance, added support for IXmlSerialization, improved error checking.\n\nNot backwards compatible with 1.x library. Aligned and expanded upon functionality in .NET 4.0. Provides TimeSpan2FormatInfo which is culturally aware. It now provides an advanced syntax for formatting and parsing. TimeSpan2 is now functionally equivalent to the 4.0 TimeSpan. See inline Documentation for more detail on syntax. Significant work to enrich design-time experience with TimeSpanPicker.\n\n## Contributing\n\n1. Fork it (\u003chttps://github.com/yourname/yourproject/fork\u003e)\n2. Create your feature branch (`git checkout -b feature/fooBar`)\n3. Commit your changes (`git commit -am 'Add some fooBar'`)\n4. Push to the branch (`git push origin feature/fooBar`)\n5. Create a new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdahall%2Ftimespan2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdahall%2Ftimespan2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdahall%2Ftimespan2/lists"}