net.sf.jour.util
Class TimeUtil

java.lang.Object
  extended bynet.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: 1.5 $ ($Author: vlads $) $Date: 2004/12/09 07:26:40 $
Author:
vlads

Field Summary
static boolean debug
           
protected static org.apache.log4j.Logger log
           
(package private) static java.lang.String timeStampDateFormat
           
(package private) static java.text.SimpleDateFormat timeStampDateFormater
           
(package private) static java.lang.String timeStampFormat
           
(package private) static java.text.DecimalFormat timeStampFormater
           
 
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 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)
           
 java.lang.String timeSec2string(int 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 org.apache.log4j.Logger log

debug

public static final boolean debug
See Also:
Constant Field Values

timeStampFormat

static java.lang.String timeStampFormat

timeStampFormater

static java.text.DecimalFormat timeStampFormater

timeStampDateFormat

static java.lang.String timeStampDateFormat

timeStampDateFormater

static java.text.SimpleDateFormat timeStampDateFormater
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 java.lang.String timeSec2string(int sec)

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 sourceforge. All Rights Reserved.