/** * Format the timestamp using the formats defined in * JwDateUtility.format() and JwTimeUtility.format(). */ public static String Format(JwTimestamp ts, String format) { String s = format; s = JwDateUtility.Format(ts.GetDate(), s); s = JwTimeUtility.Format(ts.GetTime(), s); return s; }
public String Format(JwTimestamp ts) { return JwUtility.Format( getFormat(), _datePolicy.format(ts.GetDate()), _timePolicy.format(ts.GetTime())); }
public static String Format_m_dd_yy_h_mm_ss_am(JwTimestamp ts) { return JwDateUtility.Format_m_dd_yy(ts.GetDate()) + " " + JwTimeUtility.Format_h_mm_ss_am(ts.GetTime()); }
//# __________ PROTOCOL :: UTILITY __________ #// public JwDuration Difference(JwTimestamp ts) { JwDuration dateDifference = ts.GetDate().Difference(_date); JwDuration timeDifference = ts.GetTime().Difference(_time); JwDuration d = new JwDuration(); d.Add(dateDifference); d.Add(timeDifference); return d; }