CompilationTimeFunctions NuGet Package

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().




Got any CompilationTimeFunctions Question?





Info

Version: 1.0.3
Author(s): José Ángel Martínez Torres
Last Update: Wednesday, September 30, 2020
.NET Fiddle: Create the first Fiddle
NuGet Url: https://www.nuget.org/packages/CompilationTimeFunctions


Install
Install-Package CompilationTimeFunctions
dotnet add package CompilationTimeFunctions
paket add CompilationTimeFunctions
CompilationTimeFunctions Download (Unzip the "nupkg" after downloading)



Tags



STATS

must-have-score

avg-downloads-per-day

0

days-since-last-release

1310