magic.lambda.dates 10.0.21

There is a newer version of this package available.
See the version list below for details.
dotnet add package magic.lambda.dates --version 10.0.21
                    
NuGet\Install-Package magic.lambda.dates -Version 10.0.21
                    
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="10.0.21" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="magic.lambda.dates" Version="10.0.21" />
                    
Directory.Packages.props
<PackageReference Include="magic.lambda.dates" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add magic.lambda.dates --version 10.0.21
                    
#r "nuget: magic.lambda.dates, 10.0.21"
                    
#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.
#:package magic.lambda.dates@10.0.21
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=magic.lambda.dates&version=10.0.21
                    
Install as a Cake Addin
#tool nuget:?package=magic.lambda.dates&version=10.0.21
                    
Install as a Cake Tool

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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.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 1,136 1/22/2024
17.1.7 237 1/12/2024
17.1.6 206 1/11/2024
17.1.5 216 1/5/2024
17.0.1 266 1/1/2024
17.0.0 403 12/14/2023
16.11.5 352 11/12/2023
16.9.0 350 10/9/2023
16.7.0 589 7/11/2023
16.4.1 429 7/2/2023
16.4.0 414 6/22/2023
16.3.1 373 6/7/2023
16.3.0 369 5/28/2023
16.1.9 656 4/30/2023
15.10.11 514 4/13/2023
15.9.1 632 3/27/2023
15.9.0 514 3/24/2023
15.8.2 534 3/20/2023
15.7.0 426 3/6/2023
15.5.0 1,593 1/28/2023
15.2.0 701 1/18/2023
15.1.0 1,198 12/28/2022
14.5.7 758 12/13/2022
14.5.5 847 12/6/2022
14.5.1 709 11/23/2022
14.5.0 647 11/18/2022
14.4.5 731 10/22/2022
14.4.1 784 10/22/2022
14.4.0 690 10/17/2022
14.3.1 1,317 9/12/2022
14.3.0 697 9/10/2022
14.1.3 958 8/7/2022
14.1.2 709 8/7/2022
14.1.1 708 8/7/2022
14.0.14 740 7/26/2022
14.0.12 735 7/24/2022
14.0.11 705 7/23/2022
14.0.10 725 7/23/2022
14.0.9 712 7/23/2022
14.0.8 765 7/17/2022
14.0.5 850 7/11/2022
14.0.4 841 7/6/2022
14.0.3 747 7/2/2022
14.0.2 714 7/2/2022
14.0.0 891 6/25/2022
13.4.0 2,104 5/31/2022
13.3.4 1,490 5/9/2022
13.3.0 979 5/1/2022
13.2.0 1,220 4/21/2022
13.1.0 1,090 4/7/2022
13.0.0 802 4/5/2022
11.0.5 1,494 3/2/2022
11.0.4 857 2/22/2022
11.0.3 821 2/9/2022
11.0.2 860 2/6/2022
11.0.1 840 2/5/2022
10.0.21 807 1/28/2022
10.0.20 831 1/27/2022
10.0.19 815 1/23/2022
10.0.18 801 1/17/2022
10.0.15 997 12/31/2021
10.0.14 629 12/28/2021
10.0.7 1,506 12/22/2021
10.0.5 810 12/18/2021
9.9.9 1,737 11/29/2021
9.9.3 958 11/9/2021
9.9.2 688 11/4/2021
9.9.0 796 10/30/2021
9.8.9 778 10/29/2021
9.8.7 712 10/27/2021
9.8.6 702 10/27/2021
9.8.5 790 10/26/2021
9.8.0 1,410 10/20/2021
9.7.9 677 10/19/2021
9.7.5 1,530 10/14/2021
9.7.0 928 10/9/2021
9.6.6 1,281 8/14/2021
9.2.0 6,329 5/26/2021
9.1.4 1,353 4/21/2021
9.1.0 1,131 4/14/2021
9.0.0 1,000 4/5/2021
8.9.9 1,105 3/30/2021
8.9.3 1,627 3/19/2021
8.9.2 1,120 1/29/2021
8.9.1 1,094 1/24/2021
8.9.0 1,192 1/22/2021
8.6.9 3,032 11/8/2020
8.6.6 2,015 11/2/2020
8.6.0 4,013 10/28/2020
8.5.0 1,954 10/23/2020
8.4.0 5,617 10/13/2020
8.3.1 2,658 10/5/2020
8.3.0 1,333 10/3/2020
8.2.2 2,083 9/26/2020
8.2.1 1,421 9/25/2020
8.2.0 1,460 9/25/2020
8.1.17 6,706 9/13/2020
8.1.16 669 9/13/2020
8.1.15 1,954 9/12/2020
8.1.11 2,544 9/11/2020
8.1.10 1,367 9/6/2020
8.1.9 1,405 9/3/2020
8.1.8 1,365 9/2/2020
8.1.7 1,247 8/28/2020
8.1.4 1,287 8/25/2020
8.1.3 1,354 8/18/2020
8.1.2 1,301 8/16/2020
8.1.1 1,343 8/15/2020
8.1.0 630 8/15/2020
8.0.1 2,739 8/7/2020
8.0.0 1,277 8/7/2020
7.0.1 1,452 6/28/2020
7.0.0 1,327 6/28/2020