com.atlassian.bamboo.util
Class BambooDateUtils

java.lang.Object
  extended by com.atlassian.bamboo.util.BambooDateUtils

public class BambooDateUtils
extends java.lang.Object


Constructor Summary
BambooDateUtils()
           
 
Method Summary
static java.lang.String dateToPortableString(java.util.Date date)
           
static int getMinutesDistanceToNow(java.util.Date dateToCompare)
           
static boolean isWithinDays(java.util.Date earlierDate, java.util.Date laterDate, long days)
          Returns wherther the laterDate is not later than the number of "days" since the last earlierDate
static java.util.Date portableDateToString(java.lang.String dateString)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BambooDateUtils

public BambooDateUtils()
Method Detail

isWithinDays

public static boolean isWithinDays(java.util.Date earlierDate,
                                   java.util.Date laterDate,
                                   long days)
Returns wherther the laterDate is not later than the number of "days" since the last earlierDate

Parameters:
earlierDate - - must not be null
laterDate - - must not be null
days - - must be a postive integer
Returns:
true if within the number days specified

dateToPortableString

public static java.lang.String dateToPortableString(java.util.Date date)

portableDateToString

public static java.util.Date portableDateToString(java.lang.String dateString)
                                           throws java.text.ParseException
Throws:
java.text.ParseException

getMinutesDistanceToNow

public static int getMinutesDistanceToNow(java.util.Date dateToCompare)


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.