Chronic.Core 0.4.0

.NET Standard 2.0
NuGet\Install-Package Chronic.Core -Version 0.4.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
dotnet add package Chronic.Core --version 0.4.0
<PackageReference Include="Chronic.Core" Version="0.4.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Chronic.Core --version 0.4.0
#r "nuget: Chronic.Core, 0.4.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// 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
.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
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Chronic.Core:

Package Downloads
Schick.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.
Version Downloads Last updated
0.4.0 28,329 12/24/2020
0.3.2 5,741 4/17/2017