![]() |
VOOZH | about |
dotnet add package magic.lambda.dates --version 17.2.0
NuGet\Install-Package magic.lambda.dates -Version 17.2.0
<PackageReference Include="magic.lambda.dates" Version="17.2.0" />
<PackageVersion Include="magic.lambda.dates" Version="17.2.0" />Directory.Packages.props
<PackageReference Include="magic.lambda.dates" />Project file
paket add magic.lambda.dates --version 17.2.0
#r "nuget: magic.lambda.dates, 17.2.0"
#:package magic.lambda.dates@17.2.0
#addin nuget:?package=magic.lambda.dates&version=17.2.0Install as a Cake Addin
#tool nuget:?package=magic.lambda.dates&version=17.2.0Install as a Cake Tool
This project contains date manipulation slots for Magic. More specifically, this project contains the following slots.
DateTime.Now.DateTime object.DateTime.MinValue.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"
This slot takes no arguments and simply returns the current date and time. Basic usage can be found below.
date.now
This slot takes a Unix date and time stamp, and returns a typed date object as its result. Below is an example.
date.from-unix:1674132584
This slot simply returns the minimum value a date and time object can hold. Usage can be found below.
date.min
This slot formats a date and time object as a string. Patterns are the same as patterns for C#. Below is example usage.
date.format:date:"2023-01-19T12:49:44.000Z"
format:dd. MMMM yyyy
This slots returns a time object, which is useful for doing math operations with a date and time object, allowing you to for instance subtract 5 days from the current date and time. Below is an example.
time
days:5
This slots can be given the following arguments;
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.
The projects is copyright Thomas Hansen 2023 - 2024, and professionally maintained by AINIRO.IO.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
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 |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 17.2.0 | 1,879 | 1/22/2024 |
| 17.1.7 | 416 | 1/12/2024 |
| 17.1.6 | 390 | 1/11/2024 |
| 17.1.5 | 401 | 1/5/2024 |
| 17.0.1 | 440 | 1/1/2024 |
| 17.0.0 | 591 | 12/14/2023 |
| 16.11.5 | 460 | 11/12/2023 |
| 16.9.0 | 451 | 10/9/2023 |
| 16.7.0 | 810 | 7/11/2023 |
| 16.4.1 | 617 | 7/2/2023 |
| 16.4.0 | 577 | 6/22/2023 |
| 16.3.1 | 512 | 6/7/2023 |
| 16.3.0 | 498 | 5/28/2023 |
| 16.1.9 | 806 | 4/30/2023 |
| 15.10.11 | 651 | 4/13/2023 |
| 15.9.1 | 774 | 3/27/2023 |
| 15.9.0 | 659 | 3/24/2023 |
| 15.8.2 | 656 | 3/20/2023 |
| 15.7.0 | 577 | 3/6/2023 |
| 15.5.0 | 1,799 | 1/28/2023 |