/// <summary> /// Set the modification time of the given plane. /// </summary> /// <param name="dt">Local DateTime.</param> /// <param name="planeNum">Zero-based index of the plane.</param> public void setModifiedDatetime(DateTime dt, int planeNum) { if (planeNum < 0 || planeNum >= numPlane) { return; } long julian, millisecond; JulianDatetime.getSTKdatetime(dt, out julian, out millisecond); modifiedTime[planeNum] = new TiffInfo(StkInfoCollection.UIC2Tag, "Modified time", Convert.ToUInt32(julian), Convert.ToUInt32(millisecond)); }
/// <summary> /// Get the modification time of a certain plane.This info is stored in UIC2Tag data. /// </summary> /// <param name="planeNum">Zero-based index of the plane</param> /// <param name="local">Local DateTime.</param> /// <returns>True if this info is available. False otherwise.</returns> public bool getModifiedTime(int planeNum, out DateTime local) { local = new DateTime(); if (planeNum < 0 || planeNum >= modifiedTime.Count) { return(false); } Array content = modifiedTime[planeNum].Data.getContent(); if (content == null || content.Length <= 0) { return(false); } long julian = Convert.ToInt64(content.GetValue(0)); long millsec = Convert.ToInt64(content.GetValue(1)); return(JulianDatetime.getLocalTime(julian, millsec, out local)); }