magic.lambda.dates 14.4.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package magic.lambda.dates --version 14.4.1
                    
NuGet\Install-Package magic.lambda.dates -Version 14.4.1
                    
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="14.4.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="magic.lambda.dates" Version="14.4.1" />
                    
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 14.4.1
                    
#r "nuget: magic.lambda.dates, 14.4.1"
                    
#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@14.4.1
                    
#: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=14.4.1
                    
Install as a Cake Addin
#tool nuget:?package=magic.lambda.dates&version=14.4.1
                    
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.from-unix] - Converts the specified Unix timestamp to a DateTime object.
  • [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,766 1/22/2024
17.1.7 356 1/12/2024
17.1.6 331 1/11/2024
17.1.5 341 1/5/2024
17.0.1 389 1/1/2024
17.0.0 538 12/14/2023
16.11.5 427 11/12/2023
16.9.0 418 10/9/2023
16.7.0 773 7/11/2023
16.4.1 578 7/2/2023
16.4.0 539 6/22/2023
16.3.1 482 6/7/2023
16.3.0 468 5/28/2023
16.1.9 774 4/30/2023
15.10.11 620 4/13/2023
15.9.1 749 3/27/2023
15.9.0 626 3/24/2023
15.8.2 624 3/20/2023
15.7.0 545 3/6/2023
15.5.0 1,755 1/28/2023
15.2.0 804 1/18/2023
15.1.0 1,303 12/28/2022
14.5.7 886 12/13/2022
14.5.5 955 12/6/2022
14.5.1 821 11/23/2022
14.5.0 756 11/18/2022
14.4.5 848 10/22/2022
14.4.1 908 10/22/2022
14.4.0 813 10/17/2022
14.3.1 1,451 9/12/2022
14.3.0 811 9/10/2022
14.1.3 1,078 8/7/2022
14.1.2 813 8/7/2022
14.1.1 826 8/7/2022
14.0.14 841 7/26/2022
14.0.12 857 7/24/2022
14.0.11 818 7/23/2022
14.0.10 838 7/23/2022
14.0.9 831 7/23/2022
14.0.8 866 7/17/2022
14.0.5 975 7/11/2022
14.0.4 953 7/6/2022
14.0.3 863 7/2/2022
14.0.2 826 7/2/2022
14.0.0 1,016 6/25/2022
13.4.0 2,324 5/31/2022
13.3.4 1,651 5/9/2022
13.3.0 1,114 5/1/2022
13.2.0 1,363 4/21/2022
13.1.0 1,219 4/7/2022
13.0.0 894 4/5/2022
11.0.5 1,644 3/2/2022
11.0.4 982 2/22/2022
11.0.3 955 2/9/2022
11.0.2 978 2/6/2022
11.0.1 951 2/5/2022
10.0.21 919 1/28/2022
10.0.20 936 1/27/2022
10.0.19 919 1/23/2022
10.0.18 911 1/17/2022
10.0.15 1,143 12/31/2021
10.0.14 747 12/28/2021
10.0.7 1,677 12/22/2021
10.0.5 949 12/18/2021
9.9.9 1,904 11/29/2021
9.9.3 1,129 11/9/2021
9.9.2 802 11/4/2021
9.9.0 926 10/30/2021
9.8.9 905 10/29/2021
9.8.7 833 10/27/2021
9.8.6 829 10/27/2021
9.8.5 928 10/26/2021
9.8.0 1,554 10/20/2021
9.7.9 788 10/19/2021
9.7.5 1,681 10/14/2021
9.7.0 1,082 10/9/2021
9.6.6 1,445 8/14/2021
9.2.0 6,822 5/26/2021
9.1.4 1,527 4/21/2021
9.1.0 1,289 4/14/2021
9.0.0 1,135 4/5/2021
8.9.9 1,242 3/30/2021
8.9.3 1,766 3/19/2021
8.9.2 1,247 1/29/2021
8.9.1 1,210 1/24/2021
8.9.0 1,331 1/22/2021
8.6.9 3,233 11/8/2020
8.6.6 2,211 11/2/2020
8.6.0 4,245 10/28/2020
8.5.0 2,136 10/23/2020
8.4.0 5,920 10/13/2020
8.3.1 2,864 10/5/2020
8.3.0 1,460 10/3/2020
8.2.2 2,244 9/26/2020
8.2.1 1,555 9/25/2020
8.2.0 1,610 9/25/2020
8.1.17 7,017 9/13/2020
8.1.16 776 9/13/2020
8.1.15 2,111 9/12/2020
8.1.11 2,734 9/11/2020
8.1.10 1,514 9/6/2020
8.1.9 1,530 9/3/2020
8.1.8 1,527 9/2/2020
8.1.7 1,412 8/28/2020
8.1.4 1,429 8/25/2020
8.1.3 1,486 8/18/2020
8.1.2 1,444 8/16/2020
8.1.1 1,479 8/15/2020
8.1.0 742 8/15/2020
8.0.1 2,939 8/7/2020
8.0.0 1,401 8/7/2020
7.0.1 1,599 6/28/2020
7.0.0 1,444 6/28/2020