com.flickrrecsys.util
Class Conversion

java.lang.Object
  extended by com.flickrrecsys.util.Conversion

public class Conversion
extends java.lang.Object

This class changed the way date and time are recorded in the database

Author:
Hossein Ghodsi

Constructor Summary
Conversion()
           
 
Method Summary
 java.sql.Timestamp convertDateRecorded(java.sql.Timestamp dateToConvert)
          Converts the date recorded to yyyy-MM-dd HH:mm:ss format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Conversion

public Conversion()
Method Detail

convertDateRecorded

public java.sql.Timestamp convertDateRecorded(java.sql.Timestamp dateToConvert)
Converts the date recorded to yyyy-MM-dd HH:mm:ss format

Parameters:
dateToConvert - date that needs to be converted
Returns:
Timestamp of the date passed