net.sf.jour.util
Class TimeUtil

java.lang.Object
  extended by net.sf.jour.util.TimeUtil

public class TimeUtil
extends java.lang.Object

TODO Add docs Created on 04.12.2004 Contributing Author(s): Misha Lifschitz (Inital implementation) Vlad Skarzhevskyy (Inital implementation)

Version:
$Revision: 46 $ ($Author: vlads $) $Date: 2007-08-28 14:30:40 -0400 (Tue, 28 Aug 2007) $
Author:
vlads

Field Summary
static boolean debug
           
protected static Logger log
           
 
Constructor Summary
TimeUtil()
           
 
Method Summary
static double calendar2timeStamp(java.util.Calendar calendar)
           
static void dayEnd(java.util.Calendar calendar)
           
static void dayStart(java.util.Calendar calendar)
           
static java.lang.String formatDurationHHMM(double milliseconds)
           
static java.lang.String formatDurationHHMMSS(double milliseconds)
           
static double string2MTimeSec(java.lang.String str)
           
static double[] string2TimeInterval(java.lang.String comp)
           
static int string2TimeSec(java.lang.String str)
           
static double string2TimeStamp(java.lang.String str)
           
static java.lang.String timeSec2string(long sec)
           
static java.util.Calendar timeStamp2calendar(double timeStamp)
           
static java.lang.String timeStamp2dateString(double timeStamp)
           
static java.lang.String timeStamp2string(double timeStamp)
           
static void trunc(java.util.Calendar calendar)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final Logger log

debug

public static final boolean debug
See Also:
Constant Field Values
Constructor Detail

TimeUtil

public TimeUtil()
Method Detail

string2TimeSec

public static int string2TimeSec(java.lang.String str)

string2MTimeSec

public static double string2MTimeSec(java.lang.String str)

timeSec2string

public static java.lang.String timeSec2string(long sec)

formatDurationHHMM

public static java.lang.String formatDurationHHMM(double milliseconds)

formatDurationHHMMSS

public static java.lang.String formatDurationHHMMSS(double milliseconds)

trunc

public static void trunc(java.util.Calendar calendar)

dayStart

public static void dayStart(java.util.Calendar calendar)

dayEnd

public static void dayEnd(java.util.Calendar calendar)

string2TimeStamp

public static double string2TimeStamp(java.lang.String str)

timeStamp2string

public static java.lang.String timeStamp2string(double timeStamp)

timeStamp2dateString

public static java.lang.String timeStamp2dateString(double timeStamp)

timeStamp2calendar

public static java.util.Calendar timeStamp2calendar(double timeStamp)

calendar2timeStamp

public static double calendar2timeStamp(java.util.Calendar calendar)

string2TimeInterval

public static double[] string2TimeInterval(java.lang.String comp)


Copyright © 2004-2008 pyx4j.com. All Rights Reserved.