magic.lambda.dates 11.0.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package magic.lambda.dates --version 11.0.3                
NuGet\Install-Package magic.lambda.dates -Version 11.0.3                
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.
<PackageReference Include="magic.lambda.dates" Version="11.0.3" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add magic.lambda.dates --version 11.0.3                
#r "nuget: magic.lambda.dates, 11.0.3"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install magic.lambda.dates as a Cake Addin
#addin nuget:?package=magic.lambda.dates&version=11.0.3

// Install magic.lambda.dates as a Cake Tool
#tool nuget:?package=magic.lambda.dates&version=11.0.3                

Manipulating dates from Hyperlambda

Date manipulation slots for Magic. More specifically, this project contains the following slots.

  • [date.now] - Returns the now date, equivalent of DateTime.Now.
  • [date.min] - Returns the minimum date value, equivalent of DateTime.MinValue.
  • [date.format] - Returns a string representation of some date, formatted according to the specified [format] argument.
  • [time] - Creates a time span, useful for adding and subtracting offsets to date objects. Pass in [days], [hours], [minutes], [seconds] or [milliseconds] to declare how large your offset is. All arguments are optional, but (of course) at least one argument should be passed in.

Notice - Internally in Magic, everything is UTC Universal timezone, implying if you want to render it in user's timezone, you'll have to convert it explicitly in your client/frontend. All dates and times internally in Magic, also those stored into any database, are treated as UTC timezone. All dates transmitted to the backend, is also assumed to be UTC. This is to make things simple in regards to interacting with database systems, that may or may not add support for timezone offsets. Below is an example of taking the current date and time, and adding two days and one second to it, for then to format the result as a string.

math.add
   date.now
   time
      days:2
      second:1

date.format:x:-
   format:"yyyy-MM-dd HH:mm:ss"

Project website

The source code for this repository can be found at github.com/polterguy/magic.lambda.dates, and you can provide feedback, provide bug reports, etc at the same place.

Quality gates

  • Build status
  • Quality Gate Status
  • Bugs
  • Code Smells
  • Coverage
  • Duplicated Lines (%)
  • Lines of Code
  • Maintainability Rating
  • Reliability Rating
  • Security Rating
  • Technical Debt
  • Vulnerabilities
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on magic.lambda.dates:

Package Downloads
magic.library

Helper project for Magic to wire up everything easily by simply adding one package, and invoking two simple methods. When using Magic, this is (probably) the only package you should actually add, since this package pulls in everything else you'll need automatically, and wires up everything sanely by default. To use package go to https://polterguy.github.io

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
17.2.0 441 1/22/2024
17.1.7 194 1/12/2024
17.1.6 161 1/11/2024
17.1.5 174 1/5/2024
17.0.1 221 1/1/2024
17.0.0 359 12/14/2023
16.11.5 332 11/12/2023
16.9.0 328 10/9/2023
16.7.0 547 7/11/2023
16.4.1 394 7/2/2023
16.4.0 384 6/22/2023
16.3.1 329 6/7/2023
16.3.0 319 5/28/2023
16.1.9 618 4/30/2023
15.10.11 477 4/13/2023
15.9.1 593 3/27/2023
15.9.0 462 3/24/2023
15.8.2 494 3/20/2023
15.7.0 387 3/6/2023
15.5.0 1,546 1/28/2023
15.2.0 649 1/18/2023
15.1.0 1,156 12/28/2022
14.5.7 710 12/13/2022
14.5.5 793 12/6/2022
14.5.1 659 11/23/2022
14.5.0 601 11/18/2022
14.4.5 680 10/22/2022
14.4.1 730 10/22/2022
14.4.0 645 10/17/2022
14.3.1 1,274 9/12/2022
14.3.0 651 9/10/2022
14.1.3 903 8/7/2022
14.1.2 659 8/7/2022
14.1.1 653 8/7/2022
14.0.14 692 7/26/2022
14.0.12 683 7/24/2022
14.0.11 647 7/23/2022
14.0.10 662 7/23/2022
14.0.9 651 7/23/2022
14.0.8 716 7/17/2022
14.0.5 797 7/11/2022
14.0.4 784 7/6/2022
14.0.3 694 7/2/2022
14.0.2 663 7/2/2022
14.0.0 829 6/25/2022
13.4.0 2,044 5/31/2022
13.3.4 1,430 5/9/2022
13.3.0 918 5/1/2022
13.2.0 1,158 4/21/2022
13.1.0 1,034 4/7/2022
13.0.0 745 4/5/2022
11.0.5 1,432 3/2/2022
11.0.4 786 2/22/2022
11.0.3 752 2/9/2022
11.0.2 791 2/6/2022
11.0.1 774 2/5/2022
10.0.21 745 1/28/2022
10.0.20 771 1/27/2022
10.0.19 755 1/23/2022
10.0.18 739 1/17/2022
10.0.15 926 12/31/2021
10.0.14 555 12/28/2021
10.0.7 1,444 12/22/2021
10.0.5 737 12/18/2021
9.9.9 1,664 11/29/2021
9.9.3 896 11/9/2021
9.9.2 620 11/4/2021
9.9.0 732 10/30/2021
9.8.9 709 10/29/2021
9.8.7 646 10/27/2021
9.8.6 634 10/27/2021
9.8.5 727 10/26/2021
9.8.0 1,350 10/20/2021
9.7.9 617 10/19/2021
9.7.5 1,471 10/14/2021
9.7.0 862 10/9/2021
9.6.6 1,219 8/14/2021
9.2.0 6,264 5/26/2021
9.1.4 1,278 4/21/2021
9.1.0 1,044 4/14/2021
9.0.0 922 4/5/2021
8.9.9 1,029 3/30/2021
8.9.3 1,554 3/19/2021
8.9.2 1,050 1/29/2021
8.9.1 1,021 1/24/2021
8.9.0 1,110 1/22/2021
8.6.9 2,961 11/8/2020
8.6.6 1,936 11/2/2020
8.6.0 3,947 10/28/2020
8.5.0 1,877 10/23/2020
8.4.0 5,540 10/13/2020
8.3.1 2,586 10/5/2020
8.3.0 1,253 10/3/2020
8.2.2 2,014 9/26/2020
8.2.1 1,345 9/25/2020
8.2.0 1,380 9/25/2020
8.1.17 6,632 9/13/2020
8.1.16 591 9/13/2020
8.1.15 1,875 9/12/2020
8.1.11 2,472 9/11/2020
8.1.10 1,291 9/6/2020
8.1.9 1,333 9/3/2020
8.1.8 1,285 9/2/2020
8.1.7 1,167 8/28/2020
8.1.4 1,208 8/25/2020
8.1.3 1,269 8/18/2020
8.1.2 1,221 8/16/2020
8.1.1 1,262 8/15/2020
8.1.0 549 8/15/2020
8.0.1 2,657 8/7/2020
8.0.0 1,199 8/7/2020
7.0.1 1,367 6/28/2020
7.0.0 1,251 6/28/2020