stabilizaiton work - projects rework for maintenanceability and ui livening

This commit is contained in:
master
2026-02-03 23:40:04 +02:00
parent 074ce117ba
commit 557feefdc3
3305 changed files with 186813 additions and 107843 deletions

View File

@@ -0,0 +1,19 @@
using System;
using System.Globalization;
namespace StellaOps.Provcache;
public sealed partial class ProvcacheOptions
{
/// <summary>
/// Compute time window epoch from a timestamp based on the configured bucket size.
/// </summary>
/// <param name="timestamp">The timestamp to compute the epoch for.</param>
/// <returns>The epoch identifier string.</returns>
public string ComputeTimeWindow(DateTimeOffset timestamp)
{
var bucketTicks = TimeWindowBucket.Ticks;
var epoch = timestamp.UtcTicks / bucketTicks * bucketTicks;
return new DateTimeOffset(epoch, TimeSpan.Zero).ToString("yyyy-MM-ddTHH:mm:ssZ", CultureInfo.InvariantCulture);
}
}