public MandateRelatedInformation6( string mandateIdentification, System.DateTime dateOfSignature, bool dateOfSignatureSpecified, bool amendmentIndicator, bool amendmentIndicatorSpecified, AmendmentInformationDetails6 amendmentInformationDetails, string electronicSignature, System.DateTime firstCollectionDate, bool firstCollectionDateSpecified, System.DateTime finalCollectionDate, bool finalCollectionDateSpecified, Frequency1Code frequency, bool frequencySpecified) { this.mndtIdField = mandateIdentification; this.dtOfSgntrField = dateOfSignature; this.dtOfSgntrFieldSpecified = dateOfSignatureSpecified; this.amdmntIndField = amendmentIndicator; this.amdmntIndFieldSpecified = amendmentIndicatorSpecified; this.amdmntInfDtlsField = amendmentInformationDetails; this.elctrncSgntrField = electronicSignature; this.frstColltnDtField = firstCollectionDate; this.frstColltnDtFieldSpecified = firstCollectionDateSpecified; this.fnlColltnDtField = finalCollectionDate; this.fnlColltnDtFieldSpecified = finalCollectionDateSpecified; this.frqcyField = frequency; this.frqcyFieldSpecified = frequencySpecified; }
//------------------------------------------------- public DbgMsg(string tag, string msg, verbosity verbLevel) { m_tag = tag; m_msg = msg; m_date = System.DateTime.Now; m_lvl = verbLevel; }
public Player(string name, System.DateTime birthDate, NeoDatis.Odb.Test.VO.Sport.Sport favoriteSport) { this.name = name; this.birthDate = birthDate; this.favoriteSport = favoriteSport; }
public static long ToJavaTimeFromDateTime(this System.DateTime _dateTime) { System.DateTime _startDate = new System.DateTime(1970, 1, 1, 0, 0, 0, System.DateTimeKind.Utc); long _timeInMillis = (long)(_dateTime.ToUniversalTime().Subtract(_startDate)).TotalMilliseconds; return _timeInMillis; }
public IndexedObject(string name, int duration, System.DateTime creation) : base( ) { this.name = name; this.duration = duration; this.creation = creation; }
public TaxInformation3( TaxParty1 creditor, TaxParty2 debtor, string administrationZone, string referenceNumber, string method, ActiveOrHistoricCurrencyAndAmount totalTaxableBaseAmount, ActiveOrHistoricCurrencyAndAmount totalTaxAmount, System.DateTime date, bool dateSepecified, decimal sequenceNumber, bool sequenceNumberSpecified, TaxRecord1[] record) { this.cdtrField = creditor; this.dbtrField = debtor; this.admstnZnField = administrationZone; this.refNbField = referenceNumber; this.mtdField = method; this.ttlTaxblBaseAmtField = totalTaxableBaseAmount; this.ttlTaxAmtField = totalTaxAmount; this.dtField = date; this.dtFieldSpecified = dateSepecified; this.seqNbField = sequenceNumber; this.seqNbFieldSpecified = sequenceNumberSpecified; this.rcrdField = (TaxRecord1[])record.Clone(); ; }
public object GenerateIdentity() { System.DateTime baseDate = new System.DateTime(BASE_YEAR, BASE_MONTH, BASE_DAY); System.DateTime now = System.DateTime.Now; // Get the days and milliseconds which will be used to build the byte array System.TimeSpan days = new System.TimeSpan(now.Ticks - baseDate.Ticks); System.TimeSpan msecs = new System.TimeSpan(now.Ticks - (new System.DateTime(now.Year, now.Month, now.Day).Ticks)); // Convert TimeSpans to a byte array byte[] daysArray = System.BitConverter.GetBytes(days.Days); byte[] msecsArray = System.BitConverter.GetBytes((long)(msecs.TotalMilliseconds / LIMITING_DIVISOR)); // Reverse the bytes to match big-endian ordering // Used by certain DB engines (i.e. MS-SQL) for indexing System.Array.Reverse(daysArray); System.Array.Reverse(msecsArray); // Generate a real guid for the unique portion of sequential guid and put it in a byte array byte[] guidArray = System.Guid.NewGuid().ToByteArray(); // Copy the bytes into the guid to make the sequential guid System.Array.Copy(daysArray, daysArray.Length - 2, guidArray, guidArray.Length - 6, 2); System.Array.Copy(msecsArray, msecsArray.Length - 4, guidArray, guidArray.Length - 4, 4); return new System.Guid(guidArray); }
public DateTime(System.DateTime i) { if (i != null) datetime = i; else datetime = new System.DateTime(); }
public Goods(string name, string providerName, System.DateTime receiving, System.DateTime expiring) { this.name = name; this.providerName = providerName; this.receievingDate = receiving; this.expiringDate = expiring; }
public DateTime(Scorm2004.DateTime i) { if (i != null) datetime = i.datetime; else datetime = new System.DateTime(); }
public Session(string sessionId, string login, List<Role> roles, System.DateTime time) { SessionId = sessionId; Login = login; Roles = roles; Time = time; }
public static void init() { reqIndex = 1; unixEpoch = new System.DateTime(1970, 1, 1, 0, 0, 0, System.DateTimeKind.Utc); string bundle = DeviceInfo.bundleID(); string deviceId = DeviceInfo.deviceID(); string hashSrc; if(bundle.Length > 0 && deviceId.Length > 0) { reqIdBase = "a-"; hashSrc = bundle + "-" + deviceId; } else { System.Random rng = new System.Random(); reqIdBase = "b-"; hashSrc = (int)((System.DateTime.UtcNow - unixEpoch).TotalMilliseconds) + "-" + rng.Next(); } byte[] srcBytes = System.Text.Encoding.UTF8.GetBytes(hashSrc); System.Security.Cryptography.MD5CryptoServiceProvider md5 = new System.Security.Cryptography.MD5CryptoServiceProvider(); byte[] destBytes = md5.ComputeHash(srcBytes); string finalHash = System.BitConverter.ToString(destBytes).Replace("-", string.Empty); reqIdBase += finalHash + "-"; }
private void RefreshListOfCars() { _DateTo = dateTimePicker1.Value; _DateFrom = dateTimePicker2.Value; CarList.Items.Clear(); CarList.Items.AddRange(_CarService.GetAvailableCars(_DateFrom, _DateTo).ToArray()); //if (CarList.Items.Count > 0) CarList.SelectedItem = CarList.Items[0]; }
public static System.DateTime ToDateTimeFromJavaTime(this long _time) { System.TimeSpan _timeSpanned = System.TimeSpan.FromMilliseconds(_time); System.DateTime _startDate = new System.DateTime(1970, 1, 1, 0, 0, 0, System.DateTimeKind.Utc); System.DateTime _dateTime = _startDate.Add(_timeSpanned); return _dateTime; }
public History(System.DateTime data, NeoDatis.Odb.Test.VO.School.Discipline discipline , int score, NeoDatis.Odb.Test.VO.School.Teacher teacher) { this.date = data; this.discipline = discipline; this.score = score; this.teacher = teacher; }
public ObjectWithDates(string name, System.DateTime javaUtilDate, System.DateTime javaSqlDte, System.DateTime timestamp) : base() { this.name = name; this.javaUtilDate = javaUtilDate; this.javaSqlDte = javaSqlDte; this.timestamp = timestamp; }
public void BinaryConstructorTest1() { System.DateTime left = new System.DateTime(); // TODO: Initialize to an appropriate value BinaryOperators op = new BinaryOperators(); // TODO: Initialize to an appropriate value System.DateTime right = new System.DateTime(); // TODO: Initialize to an appropriate value jgshort.SqlDom.Expressions.Binary target = new jgshort.SqlDom.Expressions.Binary(left, op, right); Assert.Inconclusive("TODO: Implement code to verify target"); }
public OutputLink(long id, System.DateTime date, string url) : base() { // TODO Auto-generated constructor stub // TODO Auto-generated constructor stub this.id = id; this.date = date; this.url = url; }
public Game(System.DateTime when, NeoDatis.Odb.Test.VO.Sport.Sport sport, NeoDatis.Odb.Test.VO.Sport.Team team1, NeoDatis.Odb.Test.VO.Sport.Team team2) { this.when = when; this.sport = sport; this.team1 = team1; this.team2 = team2; }
public void DateTimeTest() { System.DateTime d = new System.DateTime(); // TODO: Initialize to an appropriate value ConstantTypes.DateTime expected = null; // TODO: Initialize to an appropriate value ConstantTypes.DateTime actual; actual = Sql.DateTime(d); Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }
public CarRent() { InitializeComponent(); service = new CarService(); _DateOfBegin = dateTimePicker1.Value; _DateOfEnd = dateTimePicker2.Value; dateTimePicker1.MinDate = System.DateTime.Today; dateTimePicker2.MinDate = System.DateTime.Today; }
/// <summary> /// pass fills through here /// </summary> /// <param name="t"></param> public void GotFill(Trade t) { if (SendLatency == null) return; // see if we know this message long start = 0; if (!_otime.TryGetValue(t.id, out start)) return; double lat = new System.DateTime(gettime()).Subtract(new System.DateTime(start)).TotalMilliseconds; report(MessageTypes.EXECUTENOTIFY, t.id, lat); }
public void DateTime_AddingADayToALeapYear_ShouldReturnNextDayOfFebruary() { var mock = new Mock<IDateTimeProvider>(); mock.Setup(d => d.DateTimeNow).Returns(new System.DateTime(2008, 02, 28)); var date = mock.Object.DateTimeNow.AddDays(1); var expected = new System.DateTime(2008, 02, 29); Assert.AreEqual(date, expected); }
public Student(int age, NeoDatis.Odb.Test.VO.School.Course course, System.DateTime date, string id, string name) { this.age = age; this.course = course; firstDate = date; this.id = id; this.name = name; listHistory = new System.Collections.ArrayList(); }
public void DateTime_AddingADayToANotLeapYear_ShouldReturnDayOfMart() { var mock = new Mock<IDateTimeProvider>(); mock.Setup(d => d.DateTimeNow).Returns(new System.DateTime(1900, 02, 28)); var date = mock.Object.DateTimeNow.AddDays(1); var expected = new System.DateTime(1900, 03, 01); Assert.AreEqual(date, expected); }
protected override void OnMonthChanged () { System.DateTime current = this.Month; if (current.Month != last.Month || current.Year != last.Year) { System.Console.WriteLine ("Month thinks is changed {0} {1}", last.ToString (), current.ToString ()); last = current; query.Range = new DateRange (current, current.AddMonths (1)); } base.OnMonthChanged (); }
public void DateTime_AddOneDayInMiddleOfMonth_ShouldAdded() { var mock = new Mock<IDateTimeProvider>(); mock.Setup(d => d.DateTimeNow).Returns(new System.DateTime(2016, 07, 16)); var date = mock.Object.DateTimeNow.AddDays(1); var expected = new System.DateTime(2016, 7, 17); Assert.AreEqual(date, expected); }
public void DateTime_AddNagativeCountOfDays_ShouldReturnDayOfFrontMonth() { var mock = new Mock<IDateTimeProvider>(); mock.Setup(d => d.DateTimeNow).Returns(new System.DateTime(2016, 7, 5)); var date = mock.Object.DateTimeNow.AddDays(-5); var expected = new System.DateTime(2016, 6, 30); Assert.AreEqual(date, expected); }
public void DateTime_AddOneDayInTheEndOfTheMonth_ShouldReturnDayOfNextMonth() { var mock = new Mock<IDateTimeProvider>(); mock.Setup(d => d.DateTimeNow).Returns(new System.DateTime(2016, 7, 31)); var date = mock.Object.DateTimeNow.AddDays(1); var expected = new System.DateTime(2016, 8, 01); Assert.AreEqual(date, expected); }
private List <Token> MergeTwoTimePoints(string text, DateObject reference) { var ret = new List <Token>(); var er1 = this.config.SingleDateTimeExtractor.Extract(text, reference); var er2 = this.config.SingleTimeExtractor.Extract(text, reference); var timePoints = new List <ExtractResult>(); // Handle the overlap problem var j = 0; for (var i = 0; i < er1.Count; i++) { timePoints.Add(er1[i]); while (j < er2.Count && er2[j].Start + er2[j].Length < er1[i].Start) { timePoints.Add(er2[j]); j++; } while (j < er2.Count && er2[j].IsOverlap(er1[i])) { j++; } } for (; j < er2.Count; j++) { timePoints.Add(er2[j]); } timePoints = timePoints.OrderBy(o => o.Start).ToList(); // Merge "{TimePoint} to {TimePoint}", "between {TimePoint} and {TimePoint}" var idx = 0; while (idx < timePoints.Count - 1) { // If both ends are Time. then this is a TimePeriod, not a DateTimePeriod if (timePoints[idx].Type.Equals(Constants.SYS_DATETIME_TIME) && timePoints[idx + 1].Type.Equals(Constants.SYS_DATETIME_TIME)) { idx++; continue; } var middleBegin = timePoints[idx].Start + timePoints[idx].Length ?? 0; var middleEnd = timePoints[idx + 1].Start ?? 0; var middleStr = text.Substring(middleBegin, middleEnd - middleBegin).Trim(); var match = this.config.TillRegex.Match(middleStr); // Handle "{TimePoint} to {TimePoint}" if (match.Success && match.Index == 0 && match.Length == middleStr.Length) { var periodBegin = timePoints[idx].Start ?? 0; var periodEnd = (timePoints[idx + 1].Start ?? 0) + (timePoints[idx + 1].Length ?? 0); // Handle "from" var beforeStr = text.Substring(0, periodBegin).Trim().ToLowerInvariant(); if (this.config.GetFromTokenIndex(beforeStr, out int fromIndex) || this.config.GetBetweenTokenIndex(beforeStr, out fromIndex)) { periodBegin = fromIndex; } ret.Add(new Token(periodBegin, periodEnd)); idx += 2; continue; } // Handle "between {TimePoint} and {TimePoint}" if (this.config.HasConnectorToken(middleStr)) { var periodBegin = timePoints[idx].Start ?? 0; var periodEnd = (timePoints[idx + 1].Start ?? 0) + (timePoints[idx + 1].Length ?? 0); // Handle "between" var beforeStr = text.Substring(0, periodBegin).Trim().ToLowerInvariant(); if (this.config.GetBetweenTokenIndex(beforeStr, out int beforeIndex)) { periodBegin = beforeIndex; ret.Add(new Token(periodBegin, periodEnd)); idx += 2; continue; } } idx++; } // Regarding the pharse as-- {Date} {TimePeriod}, like "2015-9-23 1pm to 4" er1 = this.config.SingleDateExtractor.Extract(text, reference); er2 = this.config.TimePeriodExtractor.Extract(text, reference); er1.AddRange(er2); var points = er1.OrderBy(x => x.Start).ToList(); for (idx = 0; idx < points.Count - 1; idx++) { if (points[idx].Type == points[idx + 1].Type) { continue; } var midBegin = points[idx].Start + points[idx].Length ?? 0; var midEnd = points[idx + 1].Start ?? 0; if (midEnd - midBegin > 0) { var midStr = text.Substring(midBegin, midEnd - midBegin); if (string.IsNullOrWhiteSpace(midStr) && !string.IsNullOrEmpty(midStr)) { ret.Add(new Token(points[idx].Start ?? 0, points[idx + 1].Start + points[idx + 1].Length ?? 0)); idx += 2; } } } return(ret); }
public System.Threading.Tasks.Task <System.Data.DataTable> ObtenerPosicionesDelPreventistaAsync(string usuario, System.DateTime fechaDesde, System.DateTime fechaHasta) { return(base.Channel.ObtenerPosicionesDelPreventistaAsync(usuario, fechaDesde, fechaHasta)); }
public System.Threading.Tasks.Task <System.Data.DataTable> ObtenerVendedoresPorDiaAsync(System.DateTime fechaDesde, System.DateTime fechaHasta) { return(base.Channel.ObtenerVendedoresPorDiaAsync(fechaDesde, fechaHasta)); }
public System.Threading.Tasks.Task RecieveKitchenAsync(int id, string name, System.DateTime dateTime) { return(base.Channel.RecieveKitchenAsync(id, name, dateTime)); }
/// <summary> /// Get log report for AFD profile /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the Resource group within the Azure subscription. /// </param> /// <param name='profileName'> /// Name of the CDN profile which is unique within the resource group. /// </param> /// <param name='metrics'> /// </param> /// <param name='dateTimeBegin'> /// </param> /// <param name='dateTimeEnd'> /// </param> /// <param name='granularity'> /// Possible values include: 'PT5M', 'PT1H', 'P1D' /// </param> /// <param name='customDomains'> /// </param> /// <param name='protocols'> /// </param> /// <param name='groupBy'> /// </param> /// <param name='continents'> /// </param> /// <param name='countryOrRegions'> /// </param> public static MetricsResponse GetLogAnalyticsMetrics(this ILogAnalyticsOperations operations, string resourceGroupName, string profileName, IList <string> metrics, System.DateTime dateTimeBegin, System.DateTime dateTimeEnd, string granularity, IList <string> customDomains, IList <string> protocols, IList <string> groupBy = default(IList <string>), IList <string> continents = default(IList <string>), IList <string> countryOrRegions = default(IList <string>)) { return(operations.GetLogAnalyticsMetricsAsync(resourceGroupName, profileName, metrics, dateTimeBegin, dateTimeEnd, granularity, customDomains, protocols, groupBy, continents, countryOrRegions).GetAwaiter().GetResult()); }
public SaveData(string name, int year, int samsara, int turn, string position, System.DateTime playtime) : this(name, year, samsara, turn, position, playtime.ToString("yyyy - MM - dd [ HH : mm ]")) { }
//This constructor creates wrapper object using teklaObject. DateTime is never used but it is here to avoid conflicts with constructors with one argument public PourBreak(dynamic tsObject, System.DateTime nonConflictParameter) { this.teklaObject = tsObject; }
public DateTimeParseResult Parse(ExtractResult er, DateObject refDate) { var referenceTime = refDate; // handle cases like "三年半" var hasHalfSuffix = false; if (er.Text.EndsWith("半")) { er.Length -= 1; er.Text = er.Text.Substring(0, er.Text.Length - 1); hasHalfSuffix = true; } var parseResult = InternalParser.Parse(er); var unitResult = parseResult.Value as UnitValue; if (unitResult == null) { return(null); } var dtParseResult = new DateTimeResolutionResult(); var unitStr = unitResult.Unit; var numStr = unitResult.Number; if (hasHalfSuffix) { numStr = (double.Parse(numStr) + 0.5).ToString(); } dtParseResult.Timex = "P" + (BaseDurationParser.IsLessThanDay(unitStr) ? "T" : "") + numStr + unitStr[0]; dtParseResult.FutureValue = dtParseResult.PastValue = double.Parse(numStr) * UnitValueMap[unitStr]; dtParseResult.Success = true; if (dtParseResult.Success) { dtParseResult.FutureResolution = new Dictionary <string, string> { { TimeTypeConstants.DURATION, dtParseResult.FutureValue.ToString() } }; dtParseResult.PastResolution = new Dictionary <string, string> { { TimeTypeConstants.DURATION, dtParseResult.PastValue.ToString() } }; } var ret = new DateTimeParseResult { Text = er.Text, Start = er.Start, Length = er.Length, Type = er.Type, Data = er.Data, Value = dtParseResult, TimexStr = dtParseResult.Timex, ResolutionStr = "" }; return(ret); }
/// <summary> /// convert time to timeline /// </summary> /// <param name="time"></param> /// <returns></returns> public static int ConvertDateTimeInt(System.DateTime time) { System.DateTime startTime = System.TimeZone.CurrentTimeZone.ToLocalTime(new System.DateTime(1970, 1, 1)); return((int)(time - startTime).TotalSeconds); }
public System.Threading.Tasks.Task <string> GetDayAsync(System.DateTime value) { return(base.Channel.GetDayAsync(value)); }
public string GetDay(System.DateTime value) { return(base.Channel.GetDay(value)); }
/// <summary> /// Get WAF log analytics charts for AFD profile /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the Resource group within the Azure subscription. /// </param> /// <param name='profileName'> /// Name of the CDN profile which is unique within the resource group. /// </param> /// <param name='metrics'> /// </param> /// <param name='dateTimeBegin'> /// </param> /// <param name='dateTimeEnd'> /// </param> /// <param name='maxRanking'> /// </param> /// <param name='rankings'> /// </param> /// <param name='actions'> /// </param> /// <param name='ruleTypes'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <WafRankingsResponse> GetWafLogAnalyticsRankingsAsync(this ILogAnalyticsOperations operations, string resourceGroupName, string profileName, IList <string> metrics, System.DateTime dateTimeBegin, System.DateTime dateTimeEnd, int maxRanking, IList <string> rankings, IList <string> actions = default(IList <string>), IList <string> ruleTypes = default(IList <string>), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWafLogAnalyticsRankingsWithHttpMessagesAsync(resourceGroupName, profileName, metrics, dateTimeBegin, dateTimeEnd, maxRanking, rankings, actions, ruleTypes, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
public System.Threading.Tasks.Task <System.Data.DataTable> ObtenerPrimerClienteVisitadoAsync(string usuario, System.DateTime fechaDesde, System.DateTime fechaHasta) { return(base.Channel.ObtenerPrimerClienteVisitadoAsync(usuario, fechaDesde, fechaHasta)); }
/// <summary> /// Get WAF log analytics charts for AFD profile /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the Resource group within the Azure subscription. /// </param> /// <param name='profileName'> /// Name of the CDN profile which is unique within the resource group. /// </param> /// <param name='metrics'> /// </param> /// <param name='dateTimeBegin'> /// </param> /// <param name='dateTimeEnd'> /// </param> /// <param name='maxRanking'> /// </param> /// <param name='rankings'> /// </param> /// <param name='actions'> /// </param> /// <param name='ruleTypes'> /// </param> public static WafRankingsResponse GetWafLogAnalyticsRankings(this ILogAnalyticsOperations operations, string resourceGroupName, string profileName, IList <string> metrics, System.DateTime dateTimeBegin, System.DateTime dateTimeEnd, int maxRanking, IList <string> rankings, IList <string> actions = default(IList <string>), IList <string> ruleTypes = default(IList <string>)) { return(operations.GetWafLogAnalyticsRankingsAsync(resourceGroupName, profileName, metrics, dateTimeBegin, dateTimeEnd, maxRanking, rankings, actions, ruleTypes).GetAwaiter().GetResult()); }
public System.Data.DataTable ObtenerPrimerClienteVisitado(string usuario, System.DateTime fechaDesde, System.DateTime fechaHasta) { return(base.Channel.ObtenerPrimerClienteVisitado(usuario, fechaDesde, fechaHasta)); }
/// <summary> /// Get Waf related log analytics report for AFD profile. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the Resource group within the Azure subscription. /// </param> /// <param name='profileName'> /// Name of the CDN profile which is unique within the resource group. /// </param> /// <param name='metrics'> /// </param> /// <param name='dateTimeBegin'> /// </param> /// <param name='dateTimeEnd'> /// </param> /// <param name='granularity'> /// Possible values include: 'PT5M', 'PT1H', 'P1D' /// </param> /// <param name='actions'> /// </param> /// <param name='groupBy'> /// </param> /// <param name='ruleTypes'> /// </param> public static WafMetricsResponse GetWafLogAnalyticsMetrics(this ILogAnalyticsOperations operations, string resourceGroupName, string profileName, IList <string> metrics, System.DateTime dateTimeBegin, System.DateTime dateTimeEnd, string granularity, IList <string> actions = default(IList <string>), IList <string> groupBy = default(IList <string>), IList <string> ruleTypes = default(IList <string>)) { return(operations.GetWafLogAnalyticsMetricsAsync(resourceGroupName, profileName, metrics, dateTimeBegin, dateTimeEnd, granularity, actions, groupBy, ruleTypes).GetAwaiter().GetResult()); }
public System.Data.DataTable ObtenerVendedoresPorDia(System.DateTime fechaDesde, System.DateTime fechaHasta) { return(base.Channel.ObtenerVendedoresPorDia(fechaDesde, fechaHasta)); }
/// <summary> /// Get log analytics ranking report for AFD profile /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the Resource group within the Azure subscription. /// </param> /// <param name='profileName'> /// Name of the CDN profile which is unique within the resource group. /// </param> /// <param name='rankings'> /// </param> /// <param name='metrics'> /// </param> /// <param name='maxRanking'> /// </param> /// <param name='dateTimeBegin'> /// </param> /// <param name='dateTimeEnd'> /// </param> /// <param name='customDomains'> /// </param> public static RankingsResponse GetLogAnalyticsRankings(this ILogAnalyticsOperations operations, string resourceGroupName, string profileName, IList <string> rankings, IList <string> metrics, int maxRanking, System.DateTime dateTimeBegin, System.DateTime dateTimeEnd, IList <string> customDomains = default(IList <string>)) { return(operations.GetLogAnalyticsRankingsAsync(resourceGroupName, profileName, rankings, metrics, maxRanking, dateTimeBegin, dateTimeEnd, customDomains).GetAwaiter().GetResult()); }
public System.Data.DataTable ObtenerPosicionesDelPreventista(string usuario, System.DateTime fechaDesde, System.DateTime fechaHasta) { return(base.Channel.ObtenerPosicionesDelPreventista(usuario, fechaDesde, fechaHasta)); }
public void RecieveKitchen(int id, string name, System.DateTime dateTime) { base.Channel.RecieveKitchen(id, name, dateTime); }
//TODO: this can be abstracted with the similar method in BaseDatePeriodExtractor private List <Token> MatchDuration(string text, DateObject reference) { var ret = new List <Token>(); var durations = new List <Token>(); var durationExtractions = config.DurationExtractor.Extract(text, reference); foreach (var durationExtraction in durationExtractions) { var match = config.TimeUnitRegex.Match(durationExtraction.Text); if (match.Success) { durations.Add(new Token(durationExtraction.Start ?? 0, (durationExtraction.Start + durationExtraction.Length ?? 0))); } } foreach (var duration in durations) { var beforeStr = text.Substring(0, duration.Start).ToLowerInvariant(); var afterStr = text.Substring(duration.Start + duration.Length); if (string.IsNullOrWhiteSpace(beforeStr) && string.IsNullOrWhiteSpace(afterStr)) { continue; } var match = this.config.PastPrefixRegex.Match(beforeStr); if (match.Success && string.IsNullOrWhiteSpace(beforeStr.Substring(match.Index + match.Length))) { ret.Add(new Token(match.Index, duration.End)); continue; } match = this.config.NextPrefixRegex.Match(beforeStr); if (match.Success && string.IsNullOrWhiteSpace(beforeStr.Substring(match.Index + match.Length))) { ret.Add(new Token(match.Index, duration.End)); continue; } match = this.config.PastPrefixRegex.Match(afterStr); if (match.Success && string.IsNullOrWhiteSpace(afterStr.Substring(0, match.Index))) { ret.Add(new Token(duration.Start, duration.Start + duration.Length + match.Index + match.Length)); continue; } match = this.config.NextPrefixRegex.Match(afterStr); if (match.Success && string.IsNullOrWhiteSpace(afterStr.Substring(0, match.Index))) { ret.Add(new Token(duration.Start, duration.Start + duration.Length + match.Index + match.Length)); } match = this.config.FutureSuffixRegex.Match(afterStr); if (match.Success && string.IsNullOrWhiteSpace(afterStr.Substring(0, match.Index))) { ret.Add(new Token(duration.Start, duration.Start + duration.Length + match.Index + match.Length)); } } return(ret); }
public System.Threading.Tasks.Task PublishToKitchenServiceAsync(int id, string name, System.DateTime dateTime) { return(base.Channel.PublishToKitchenServiceAsync(id, name, dateTime)); }
private List <Token> MatchTimeOfDay(string text, DateObject reference) { var ret = new List <Token>(); var matches = this.config.SpecificTimeOfDayRegex.Matches(text); foreach (Match match in matches) { ret.Add(new Token(match.Index, match.Index + match.Length)); } // Date followed by morning, afternoon or morning, afternoon followed by Date var ers = this.config.SingleDateExtractor.Extract(text, reference); if (ers.Count == 0) { return(ret); } foreach (var er in ers) { var afterStr = text.Substring(er.Start + er.Length ?? 0); var match = this.config.PeriodTimeOfDayWithDateRegex.Match(afterStr); if (!match.Success) { match = this.config.AmDescRegex.Match(afterStr); if (!match.Success) { match = this.config.PmDescRegex.Match(afterStr); } } if (match.Success) { if (string.IsNullOrWhiteSpace(afterStr.Substring(0, match.Index))) { ret.Add(new Token(er.Start ?? 0, er.Start + er.Length + match.Index + match.Length ?? 0)); } else { var connectorStr = afterStr.Substring(0, match.Index); var pauseMatch = config.MiddlePauseRegex.Match(connectorStr); if (pauseMatch.Success && pauseMatch.Length == connectorStr.Length) { var suffix = afterStr.Substring(match.Index + match.Length).TrimStart(' '); var endingMatch = config.GeneralEndingRegex.Match(suffix); if (endingMatch.Success) { ret.Add(new Token(er.Start ?? 0, er.Start + er.Length + match.Index + match.Length ?? 0)); } } } } var prefixStr = text.Substring(0, er.Start ?? 0); match = this.config.PeriodTimeOfDayWithDateRegex.Match(prefixStr); if (match.Success) { if (string.IsNullOrWhiteSpace(prefixStr.Substring(match.Index + match.Length))) { var midStr = text.Substring(match.Index + match.Length, er.Start - match.Index - match.Length ?? 0); if (!string.IsNullOrEmpty(midStr) && string.IsNullOrWhiteSpace(midStr)) { ret.Add(new Token(match.Index, er.Start + er.Length ?? 0)); } } else { var connectorStr = prefixStr.Substring(match.Index + match.Length); var pauseMatch = config.MiddlePauseRegex.Match(connectorStr); if (pauseMatch.Success && pauseMatch.Length == connectorStr.Length) { var suffix = text.Substring(er.Start + er.Length ?? 0).TrimStart(' '); var endingMatch = config.GeneralEndingRegex.Match(suffix); if (endingMatch.Success) { ret.Add(new Token(match.Index, er.Start + er.Length ?? 0)); } } } } } // Check whether there are adjacent time period strings, before or after foreach (var e in ret.ToArray()) { // Try to extract a time period in before-string if (e.Start > 0) { var beforeStr = text.Substring(0, e.Start); if (!string.IsNullOrEmpty(beforeStr)) { var timeErs = this.config.TimePeriodExtractor.Extract(beforeStr); if (timeErs.Count > 0) { foreach (var tp in timeErs) { var midStr = beforeStr.Substring(tp.Start + tp.Length ?? 0); if (string.IsNullOrWhiteSpace(midStr)) { ret.Add(new Token(tp.Start ?? 0, tp.Start + tp.Length + midStr.Length + e.Length ?? 0)); } } } } } // Try to extract a time period in after-string if (e.Start + e.Length <= text.Length) { var afterStr = text.Substring(e.Start + e.Length); if (!string.IsNullOrEmpty(afterStr)) { var timeErs = this.config.TimePeriodExtractor.Extract(afterStr); if (timeErs.Count > 0) { foreach (var tp in timeErs) { var midStr = afterStr.Substring(0, tp.Start ?? 0); if (string.IsNullOrWhiteSpace(midStr)) { ret.Add(new Token(e.Start, e.Start + e.Length + midStr.Length + tp.Length ?? 0)); } } } } } } return(ret); }
public void PublishToKitchenService(int id, string name, System.DateTime dateTime) { base.Channel.PublishToKitchenService(id, name, dateTime); }
public System.Threading.Tasks.Task GetBackOrderAsync(int id, string name, System.DateTime dateTime) { return(base.Channel.GetBackOrderAsync(id, name, dateTime)); }
public void GetBackOrder(int id, string name, System.DateTime dateTime) { base.Channel.GetBackOrder(id, name, dateTime); }
public DataTable1Row AddDataTable1Row(string Company, double Deposit_Qty, double Deposit_Amount, double Withdraw_Qty, double Withdraw_Amount, string Remarks, System.DateTime Received_Date) { DataTable1Row rowDataTable1Row = ((DataTable1Row)(this.NewRow())); object[] columnValuesArray = new object[] { Company, Deposit_Qty, Deposit_Amount, Withdraw_Qty, Withdraw_Amount, Remarks, Received_Date }; rowDataTable1Row.ItemArray = columnValuesArray; this.Rows.Add(rowDataTable1Row); return(rowDataTable1Row); }
/// <summary> /// Get log report for AFD profile /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the Resource group within the Azure subscription. /// </param> /// <param name='profileName'> /// Name of the CDN profile which is unique within the resource group. /// </param> /// <param name='metrics'> /// </param> /// <param name='dateTimeBegin'> /// </param> /// <param name='dateTimeEnd'> /// </param> /// <param name='granularity'> /// Possible values include: 'PT5M', 'PT1H', 'P1D' /// </param> /// <param name='customDomains'> /// </param> /// <param name='protocols'> /// </param> /// <param name='groupBy'> /// </param> /// <param name='continents'> /// </param> /// <param name='countryOrRegions'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <MetricsResponse> GetLogAnalyticsMetricsAsync(this ILogAnalyticsOperations operations, string resourceGroupName, string profileName, IList <string> metrics, System.DateTime dateTimeBegin, System.DateTime dateTimeEnd, string granularity, IList <string> customDomains, IList <string> protocols, IList <string> groupBy = default(IList <string>), IList <string> continents = default(IList <string>), IList <string> countryOrRegions = default(IList <string>), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetLogAnalyticsMetricsWithHttpMessagesAsync(resourceGroupName, profileName, metrics, dateTimeBegin, dateTimeEnd, granularity, customDomains, protocols, groupBy, continents, countryOrRegions, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Initializes a new instance of the DateTimePropertyDiagnostics /// class. /// </summary> /// <param name="value">Date time property value.</param> public DateTimePropertyDiagnostics(string name, System.DateTime value) : base(name) { Value = value; CustomInit(); }
//This constructor creates wrapper object using teklaObject. DateTime is never used but it is here to avoid conflicts with constructors with one argument public LoadPoint(dynamic tsObject, System.DateTime nonConflictParameter) { this.teklaObject = tsObject; }
private void dateTimePicker2_ValueChanged(object sender, System.EventArgs e) { dateTimePicker1.Value = dateTimePicker1.Value > dateTimePicker2.Value ? dateTimePicker2.Value : dateTimePicker1.Value; _DateOfEnd = dateTimePicker2.Value; _DateOfBegin = dateTimePicker1.Value; ReloadCarList(); }