Chronic.Core
0.4.0
dotnet add package Chronic.Core --version 0.4.0
NuGet\Install-Package Chronic.Core -Version 0.4.0
<PackageReference Include="Chronic.Core" Version="0.4.0" />
paket add Chronic.Core --version 0.4.0
#r "nuget: Chronic.Core, 0.4.0"
// Install Chronic.Core as a Cake Addin
#addin nuget:?package=Chronic.Core&version=0.4.0
// Install Chronic.Core as a Cake Tool
#tool nuget:?package=Chronic.Core&version=0.4.0
nChronic.Core
Introduction
A natural language date parser for .Net Standard written in C#. Originally written by Mike Schrag as a direct port of Ruby's Chronic, later ported to .NET by Robert Wilczynski, and finally migrated to .NET Standard by Rob Bell.
Usage
DateTime.Now;
//=> Sun Aug 27 23:18:25 PDT 2006
var parser = new Parser();
parser.Parse("tomorrow");
// => Mon Aug 28 12:00:00 PDT 2006
// Setting context
parser = new Parser(new Options { Context = Pointer.Type.Past });
parser.Parse("monday");
// => Mon Aug 21 12:00:00 PDT 2006
parser = new Parser(new Options { Clock = () => new DateTime(2000, 1, 1)});
parser.Parse("may 27th");
// => Sat May 27 12:00:00 PDT 2000
Installation
.NET Core
dotnet add package Chronic.Core
.NET Framework
Install-Package Chronic.Core
Credits
This is a port of https://github.com/mojombo/chronic inspired by https://github.com/samtingleff/jchronic. Please see those projects for further credits.
License
Unless specified otherwise all is licensed under the MIT license. See LICENSE for details. Logo is the creation of Alexander Moore and is licensed under the GNU/GPL license (via http://findicons.com/icon/232550/clock).
Product | Versions |
---|---|
.NET | net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows |
.NET Core | netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1 |
.NET Standard | netstandard2.0 netstandard2.1 |
.NET Framework | net461 net462 net463 net47 net471 net472 net48 net481 |
MonoAndroid | monoandroid |
MonoMac | monomac |
MonoTouch | monotouch |
Tizen | tizen40 tizen60 |
Xamarin.iOS | xamarinios |
Xamarin.Mac | xamarinmac |
Xamarin.TVOS | xamarintvos |
Xamarin.WatchOS | xamarinwatchos |
-
.NETStandard 2.0
- Microsoft.CSharp (>= 4.4.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Chronic.Core:
Package | Downloads |
---|---|
Schick.FilterExpressionCreator
Library to dynamically create lambda expressions to filter lists and database queries |
|
zackattackz.FilterExpressionCreator
Library to dynamically create lambda expressions to filter lists and database queries |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on Chronic.Core:
Repository | Stars |
---|---|
wabbajack-tools/wabbajack
An automated Modlist installer for various games.
|