Vali-Tempo
1.1.0
dotnet add package Vali-Tempo --version 1.1.0
NuGet\Install-Package Vali-Tempo -Version 1.1.0
<PackageReference Include="Vali-Tempo" Version="1.1.0" />
<PackageVersion Include="Vali-Tempo" Version="1.1.0" />
<PackageReference Include="Vali-Tempo" />
paket add Vali-Tempo --version 1.1.0
#r "nuget: Vali-Tempo, 1.1.0"
#:package Vali-Tempo@1.1.0
#addin nuget:?package=Vali-Tempo&version=1.1.0
#tool nuget:?package=Vali-Tempo&version=1.1.0
Vali-Tempo
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→ValiTimeIValiDate→ValiDateIValiRange→ValiRangeIValiCalendar→ValiCalendarIValiCountdown→ValiCountdownIValiAge→ValiAgeIValiSchedule→ValiScheduleIValiHoliday→ValiHolidayIValiTimeZone→ValiTimeZoneIValiBusinessHours→ValiBusinessHoursIValiBucket→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:
- Latin America — MercadoPago
- International — PayPal
| Product | Versions 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. |
-
net10.0
- Vali-Age (>= 1.0.0)
- Vali-Bucket (>= 1.0.0)
- Vali-BusinessHours (>= 1.0.0)
- Vali-Calendar (>= 1.0.0)
- Vali-CountDown (>= 1.0.0)
- Vali-Duration (>= 1.0.0)
- Vali-Holiday (>= 1.0.0)
- Vali-Range (>= 1.0.0)
- Vali-Schedule (>= 1.0.0)
- Vali-Time (>= 1.0.1)
- Vali-TimeZone (>= 1.0.0)
-
net8.0
- Vali-Age (>= 1.0.0)
- Vali-Bucket (>= 1.0.0)
- Vali-BusinessHours (>= 1.0.0)
- Vali-Calendar (>= 1.0.0)
- Vali-CountDown (>= 1.0.0)
- Vali-Duration (>= 1.0.0)
- Vali-Holiday (>= 1.0.0)
- Vali-Range (>= 1.0.0)
- Vali-Schedule (>= 1.0.0)
- Vali-Time (>= 1.0.1)
- Vali-TimeZone (>= 1.0.0)
-
net9.0
- Vali-Age (>= 1.0.0)
- Vali-Bucket (>= 1.0.0)
- Vali-BusinessHours (>= 1.0.0)
- Vali-Calendar (>= 1.0.0)
- Vali-CountDown (>= 1.0.0)
- Vali-Duration (>= 1.0.0)
- Vali-Holiday (>= 1.0.0)
- Vali-Range (>= 1.0.0)
- Vali-Schedule (>= 1.0.0)
- Vali-Time (>= 1.0.1)
- Vali-TimeZone (>= 1.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
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().