init commit

This commit is contained in:
2025-10-09 09:57:24 +09:00
commit 4d551bd74f
6636 changed files with 1218703 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
using Org.BouncyCastle.Asn1;
using Org.BouncyCastle.Asn1.Tsp;
namespace Org.BouncyCastle.Tsp;
public class GenTimeAccuracy
{
private Accuracy accuracy;
public int Seconds => GetTimeComponent(accuracy.Seconds);
public int Millis => GetTimeComponent(accuracy.Millis);
public int Micros => GetTimeComponent(accuracy.Micros);
public GenTimeAccuracy(Accuracy accuracy)
{
this.accuracy = accuracy;
}
private int GetTimeComponent(DerInteger time)
{
return time?.Value.IntValue ?? 0;
}
public override string ToString()
{
return Seconds + "." + Millis.ToString("000") + Micros.ToString("000");
}
}