public bool Equals(DateTag obj) { if (obj == null) { return(false); } return(m_dateTicks == obj.m_dateTicks && TimeZone.Equals(obj.TimeZone) && Precision == obj.Precision); }
/// <summary> /// Returns true if UserInfo instances are equal /// </summary> /// <param name="other">Instance of UserInfo to be compared</param> /// <returns>Boolean</returns> public bool Equals(UserInfo other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Email == other.Email || Email != null && Email.Equals(other.Email) ) && ( UserId == other.UserId || UserId != null && UserId.Equals(other.UserId) ) && ( TimeZone == other.TimeZone || TimeZone != null && TimeZone.Equals(other.TimeZone) ) && ( Activated == other.Activated || Activated != null && Activated.Equals(other.Activated) ) && ( CreationTime == other.CreationTime || CreationTime != null && CreationTime.Equals(other.CreationTime) ) && ( LastModifiedTime == other.LastModifiedTime || LastModifiedTime != null && LastModifiedTime.Equals(other.LastModifiedTime) ) && ( LastLoginTime == other.LastLoginTime || LastLoginTime != null && LastLoginTime.Equals(other.LastLoginTime) )); }
/// <summary> /// /// </summary> /// <param name="obj"></param> /// <returns></returns> public override bool Equals(object obj) { if (null == obj) { return(false); } if (object.ReferenceEquals(this, obj)) { return(true); } var p = obj as Preferences; if (null == p) { return(false); } if (!Id.Equals(p.Id)) { return(false); } if (!OrgId.Equals(p.OrgId)) { return(false); } if (!HomeDashboardId.Equals(p.HomeDashboardId)) { return(false); } if (!TimeZone.Equals(p.TimeZone)) { return(false); } if (!Theme.Equals(p.Theme)) { return(false); } return(true); }
public bool Equals(InvoicePayment other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Equals(Id, other.Id) && Equals(Type, other.Type) && Date.Equals(other.Date) && TimeZone.Equals(other.TimeZone) && Equals(Amount, other.Amount)); }
private static long TranslateToDate(long timeWithDate, long time, TimeZone timeIsGivenInThisTimeZone) { DateTime calendar = DateTime.getInstance(timeIsGivenInThisTimeZone); calendar.TimeInMillis = timeWithDate; DateTime timeCalendar = new DateTime(); timeCalendar.TimeInMillis = time; timeCalendar.TimeZone = timeIsGivenInThisTimeZone; timeCalendar.set(DateTime.YEAR, calendar.Year); timeCalendar.set(DateTime.MONTH, calendar.Month); bool crossedDayBoundary = !timeIsGivenInThisTimeZone.Equals(Format.DefaultTimeZone) && timeCalendar.Hour < calendar.Hour; timeCalendar.set(DateTime.DAY_OF_MONTH, calendar.Day + (crossedDayBoundary ? 1 : 0)); return(timeCalendar.Ticks); }
public bool Equals(FbZonedTime other) => Time.Equals(other.Time) && TimeZone.Equals(other.TimeZone, StringComparison.OrdinalIgnoreCase);
public bool Equals(FbZonedDateTime other) { return(DateTime.Equals(other.DateTime) && TimeZone.Equals(other.TimeZone, StringComparison.OrdinalIgnoreCase)); }