Example #1
0
 /**
  * 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;
 }
Example #2
0
 public String Format(JwTimestamp ts)
 {
     return JwUtility.Format(
         getFormat(),
         _datePolicy.format(ts.GetDate()),
         _timePolicy.format(ts.GetTime()));
 }
Example #3
0
 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());
 }
Example #4
0
 //# __________ 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;
 }