CompilationTimeFunctions 1.0.3

dotnet add package CompilationTimeFunctions --version 1.0.3
NuGet\Install-Package CompilationTimeFunctions -Version 1.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="CompilationTimeFunctions" Version="1.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CompilationTimeFunctions --version 1.0.3
#r "nuget: CompilationTimeFunctions, 1.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 CompilationTimeFunctions as a Cake Addin
#addin nuget:?package=CompilationTimeFunctions&version=1.0.3

// Install CompilationTimeFunctions as a Cake Tool
#tool nuget:?package=CompilationTimeFunctions&version=1.0.3

In C++ you can get the compilation time using the __DATE__ and __TIME__ macros, but that macros returns strings representing the date and time and not values we can use to compare.

Sometimes we need to compare this dates and times, maybe because we want to know at runtime whether or not our program's compile date is higher than the maximum date stored in the user's license file.

The constexpr functions provided by this repository helps us to convert the __DATE__ and __TIME__ macros into values that we can try and/or compare in our programs.

Include <compilationtimefunctions.h> and call to any of the next functions: CompilationDay(), CompilationMonth(), CompilationYear(), CompilationHour(), CompilationMinute(), CompilationSecond(),
GetCompilationTM(),
GetCompilationSystemTime()

Product Compatible and additional computed target framework versions.
native native is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.3 556 9/30/2020
1.0.2 494 11/2/2019
1.0.1 474 10/23/2019
1.0.0 527 10/23/2019