30 lines
934 B
C#
30 lines
934 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace mbts.analytics
|
|
{
|
|
public class VolSurfaceStandardTime
|
|
{
|
|
public readonly TimeZoneInfo timezone;
|
|
public readonly DateTime server_time, server_time_utc;
|
|
|
|
public VolSurfaceStandardTime(TimeZoneInfo timezone,
|
|
DateTime server_time,
|
|
DateTime server_time_utc)
|
|
{
|
|
this.timezone = timezone;
|
|
this.server_time = server_time;
|
|
this.server_time_utc = server_time_utc;
|
|
}
|
|
|
|
public static VolSurfaceStandardTime get_local_default()
|
|
{
|
|
DateTime local_rounded = VolSurfaceUtilityFunctions.round_time_mins (DateTime.Now, VolSurfaceConstants.vol_time_sample_mins);
|
|
return new VolSurfaceStandardTime (TimeZoneInfo.Local,local_rounded, local_rounded);
|
|
}
|
|
}
|
|
}
|