public static string GetFormattedTimestampRFC822(int minutesFromNow) { DateTime dateTime = CorrectedUtcNow.AddMinutes((double)minutesFromNow); return(new DateTime(dateTime.Year, dateTime.Month, dateTime.Day, dateTime.Hour, dateTime.Minute, dateTime.Second, dateTime.Millisecond, DateTimeKind.Local).ToString("ddd, dd MMM yyyy HH:mm:ss \\G\\M\\T", CultureInfo.InvariantCulture)); }
public static string GetFormattedTimestampISO8601(int minutesFromNow) { DateTime dateTime = CorrectedUtcNow.AddMinutes((double)minutesFromNow); return(new DateTime(dateTime.Year, dateTime.Month, dateTime.Day, dateTime.Hour, dateTime.Minute, dateTime.Second, dateTime.Millisecond, DateTimeKind.Local).ToString("yyyy-MM-dd\\THH:mm:ss.fff\\Z", CultureInfo.InvariantCulture)); }