예제 #1
0
        public static OffsetNowUtcProvider NewFromDesiredNowLocal(DateTime desiredNowLocal)
        {
            var offset = DateTime.Now - desiredNowLocal;

            var offsetNowUtcProvider = OffsetNowUtcProvider.NewFromOffset(offset);

            return(offsetNowUtcProvider);
        }
예제 #2
0
        public static OffsetNowUtcProvider New(TimeSpan offset)
        {
            var offsetNowUtcProvider = OffsetNowUtcProvider.NewFromOffset(offset);

            return(offsetNowUtcProvider);
        }