org.jenkins.plugins.audit2db.internal.reports
Class DbAuditReportUtils
java.lang.Object
org.jenkins.plugins.audit2db.internal.reports.DbAuditReportUtils
public abstract class DbAuditReportUtils
- extends Object
- Author:
- Marco Scata
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DbAuditReportUtils
public DbAuditReportUtils()
dateAsString
public static String dateAsString(Date date,
boolean showTime)
- Formats the given date as a string.
- Parameters:
showTime
- whether the time part should be shown or not.
- Returns:
- the string equivalent of the given date.
stringToDate
public static Date stringToDate(String dateString)
- Parameters:
dateString
- a valid date string.
- Returns:
- the equivalent
Date
object, or null
if the
date string cannot be parsed.
getStartDateParam
public static String getStartDateParam(String dateString)
getEndDateParam
public static String getEndDateParam(String dateString)
Copyright © 2004-2013. All Rights Reserved.