Vali-Tempo 1.1.0

dotnet add package Vali-Tempo --version 1.1.0
                    
NuGet\Install-Package Vali-Tempo -Version 1.1.0
                    
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="Vali-Tempo" Version="1.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Vali-Tempo" Version="1.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Vali-Tempo" />
                    
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 Vali-Tempo --version 1.1.0
                    
#r "nuget: Vali-Tempo, 1.1.0"
                    
#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 Vali-Tempo@1.1.0
                    
#: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=Vali-Tempo&version=1.1.0
                    
Install as a Cake Addin
#tool nuget:?package=Vali-Tempo&version=1.1.0
                    
Install as a Cake Tool

Vali-Tempo

NuGet License .NET

Vali-Tempo is the meta-package for the Vali-Tempo ecosystem. Installing it gives you every module with a single NuGet reference and a single DI registration call.

Installation

dotnet add package Vali-Tempo

Compiled targets: net8.0 · net9.0 · net10.0. Compatible with .NET 6 and .NET 7 via NuGet backward compatibility — no separate build needed.

What's Included

Package Class Description
Vali-Time ValiTime, ValiDate Core time conversion, date arithmetic
Vali-Range ValiRange Date range creation and manipulation
Vali-Calendar ValiCalendar Workday and week calculations
Vali-Duration ValiDuration High-precision decimal duration struct
Vali-CountDown ValiCountdown Countdown and deadline tracking
Vali-Age ValiAge Age calculation from birthdate
Vali-Schedule ValiSchedule Recurring event scheduling
Vali-Holiday ValiHoliday Holiday providers for 35+ countries
Vali-TimeZone ValiTimeZone Timezone conversion and discovery
Vali-BusinessHours ValiBusinessHours Cross-timezone business-hours overlap
Vali-Bucket ValiBucket Fixed-size time-series bucketing and aggregation

Dependency Injection

// Program.cs — register everything in one call
builder.Services.AddValiTempo();

This registers all services with singleton lifetime:

  • IValiTime → ValiTime
  • IValiDate → ValiDate
  • IValiRange → ValiRange
  • IValiCalendar → ValiCalendar
  • IValiCountdown → ValiCountdown
  • IValiAge → ValiAge
  • IValiSchedule → ValiSchedule
  • IValiHoliday → ValiHoliday
  • IValiTimeZone → ValiTimeZone
  • IValiBusinessHours → ValiBusinessHours
  • IValiBucket → ValiBucket

Usage Example

public class TimeService(
    IValiTime time,
    IValiDate date,
    IValiAge age,
    IValiTimeZone timeZone,
    IValiHoliday holiday)
{
    public string GetSummary(DateTime birthDate)
    {
        var ageResult = age.Exact(birthDate);
        var nowInLima = timeZone.Now("America/Lima");
        var isHoliday = holiday.IsHoliday(nowInLima, "PE");

        return $"Age: {age.Format(birthDate)} | " +
               $"Lima: {nowInLima:HH:mm} | " +
               $"Holiday: {isHoliday}";
    }
}

Individual Packages

You can install only the packages you need instead of the full meta-package:

dotnet add package Vali-Time
dotnet add package Vali-Range
dotnet add package Vali-Calendar
dotnet add package Vali-Duration
dotnet add package Vali-CountDown
dotnet add package Vali-Age
dotnet add package Vali-Schedule
dotnet add package Vali-Holiday
dotnet add package Vali-TimeZone
dotnet add package Vali-BusinessHours
dotnet add package Vali-Bucket

Ecosystem Overview

Vali-Tempo Ecosystem
│
├── Vali-Time        — IValiTime, IValiDate
├── Vali-Range       — IValiRange, DateRange
├── Vali-Calendar    — IValiCalendar, CalendarWeek
├── Vali-Duration    — ValiDuration (struct)
├── Vali-CountDown   — IValiCountdown
├── Vali-Age         — IValiAge, AgeResult
├── Vali-Schedule    — IValiSchedule, ScheduleConfig
├── Vali-Holiday     — IValiHoliday, IHolidayProvider (35+ countries)
├── Vali-TimeZone    — IValiTimeZone, ValiZoneInfo
├── Vali-BusinessHours — IValiBusinessHours (composes Vali-Calendar + Vali-TimeZone)
├── Vali-Bucket      — IValiBucket, TimeBucket
└── Vali-Tempo       — Meta-package (this package)

License

MIT © 2025 Felipe Rafael Montenegro Morriberon

Donations

If this package is useful to you, consider supporting its development:


Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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 is compatible.  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 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.1.0 129 10/14/2026
1.0.0 177 3/26/2026

Vali-Tempo v1.1.0 — add Vali-BusinessHours and Vali-Bucket to the meta-package registration (temporarily via ProjectReference until both are published; see ponytail comment below). No breaking changes.

           Vali-Tempo v1.0.0 — meta-package for the Vali-Tempo ecosystem. Registers all Vali services via AddValiTempo().