GithubHelp home page GithubHelp logo

arunselvakumar / fluentdatetime Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fluentdatetime/fluentdatetime

0.0 1.0 0.0 623 KB

Allows you to write cleaner DateTime expressions and operation.

C# 100.00%

fluentdatetime's Introduction

Icon

FluentDateTime

Partially inspired by Ruby DateTime Extensions

Allows you to write cleaner DateTime expressions and operation. For example your code can look like this:

  • DateTime.Now - 1.Weeks() - 3.Days() + 14.Minutes();
  • DateTime.Now + 5.Years();
  • 3.Days().Ago();
  • 2.Days().Since(DateTime.Now);
  • DateTime.Now.NextDay();
  • DateTime.Now.NextYear();
  • DateTime.Now.PreviousYear();
  • DateTime.Now.WeekAfter();
  • DateTime.Now.Midnight();
  • DateTime.Now.Noon();
  • DateTime.Now.SetTime(11, 55, 0);

(See Unit Tests in the project for more details).

Nuget

There are two nuget packages

The binary version

This uses the standard approach to constructing a nuget package. It contains a dll which will be added as a reference to your project. You then deploy the binary with your project.

PM> Install-Package FluentDateTime

The code only version

This is a "code only" package that leverages the Content Convention of Nuget to inject code files into your project. Note that this is only compatible with C# projects.

The benefits of this approach are ease of debugging and less files to deploy

PM> Install-Package FluentDateTime-CodeOnly

Icon

Calendar from The Noun Project

fluentdatetime's People

Contributors

mrbelk avatar simoncropp avatar spavkov avatar tchelidze avatar wilson0x4d avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.