Java Doc for UtilDateTime.java in  » ERP-CRM-Financial » SourceTap-CRM » org » ofbiz » base » util » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ERP CRM Financial » SourceTap CRM » org.ofbiz.base.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.ofbiz.base.util.UtilDateTime

UtilDateTime
public class UtilDateTime (Code)
Utility class for handling java.util.Date, the java.sql data/time classes and related
author:
   David E. Jones
author:
   Andy Zeneski
author:
   Johan Isacsson
version:
   $Revision: 1.1 $
since:
   2.0




Method Summary
public static  java.sql.TimestampgetDayEnd(java.sql.Timestamp stamp)
    
public static  java.sql.TimestampgetDayEnd(java.sql.Timestamp stamp, int daysLater)
    
public static  java.sql.TimestampgetDayStart(java.sql.Timestamp stamp)
    
public static  java.sql.TimestampgetDayStart(java.sql.Timestamp stamp, int daysLater)
    
public static  java.sql.TimestampgetMonthStart(java.sql.Timestamp stamp)
    
public static  java.sql.TimestampgetMonthStart(java.sql.Timestamp stamp, int daysLater)
    
public static  java.sql.TimestampgetNextDayStart(java.sql.Timestamp stamp)
    
public static  java.sql.TimestampgetWeekStart(java.sql.Timestamp stamp)
    
public static  java.sql.TimestampgetWeekStart(java.sql.Timestamp stamp, int daysLater)
    
public static  java.sql.TimestampmonthBegin()
    
public static  java.util.DatenowDate()
    
public static  StringnowDateString()
    
public static  java.sql.TimestampnowTimestamp()
    
public static  java.util.DatetoDate(String dateTime)
    
public static  java.util.DatetoDate(String date, String time)
    
public static  java.util.DatetoDate(String monthStr, String dayStr, String yearStr, String hourStr, String minuteStr, String secondStr)
     Makes a Date from separate Strings for month, day, year, hour, minute, and second.
public static  java.util.DatetoDate(int month, int day, int year, int hour, int minute, int second)
     Makes a Date from separate ints for month, day, year, hour, minute, and second.
public static  StringtoDateString(java.util.Date date)
    
public static  StringtoDateTimeString(java.util.Date date)
     Makes a combined data and time string in the format "MM/DD/YYYY HH:MM:SS" from a Date.
public static  java.sql.DatetoSqlDate(String date)
    
public static  java.sql.DatetoSqlDate(String monthStr, String dayStr, String yearStr)
    
public static  java.sql.DatetoSqlDate(int month, int day, int year)
    
public static  java.sql.TimetoSqlTime(String time)
    
public static  java.sql.TimetoSqlTime(String hourStr, String minuteStr, String secondStr)
     Makes a java.sql.Time from separate Strings for hour, minute, and second.
public static  java.sql.TimetoSqlTime(int hour, int minute, int second)
     Makes a java.sql.Time from separate ints for hour, minute, and second.
public static  StringtoTimeString(java.util.Date date)
     Makes a time String in the format HH:MM:SS from a Date.
public static  StringtoTimeString(int hour, int minute, int second)
     Makes a time String in the format HH:MM:SS from a separate ints for hour, minute, and second.
public static  java.sql.TimestamptoTimestamp(String dateTime)
    
public static  java.sql.TimestamptoTimestamp(String date, String time)
    
public static  java.sql.TimestamptoTimestamp(String monthStr, String dayStr, String yearStr, String hourStr, String minuteStr, String secondStr)
     Makes a Timestamp from separate Strings for month, day, year, hour, minute, and second.
public static  java.sql.TimestamptoTimestamp(int month, int day, int year, int hour, int minute, int second)
     Makes a Timestamp from separate ints for month, day, year, hour, minute, and second.



Method Detail
getDayEnd
public static java.sql.Timestamp getDayEnd(java.sql.Timestamp stamp)(Code)



getDayEnd
public static java.sql.Timestamp getDayEnd(java.sql.Timestamp stamp, int daysLater)(Code)



getDayStart
public static java.sql.Timestamp getDayStart(java.sql.Timestamp stamp)(Code)



getDayStart
public static java.sql.Timestamp getDayStart(java.sql.Timestamp stamp, int daysLater)(Code)



getMonthStart
public static java.sql.Timestamp getMonthStart(java.sql.Timestamp stamp)(Code)
Return the date for the first day of the month
Parameters:
  stamp -



getMonthStart
public static java.sql.Timestamp getMonthStart(java.sql.Timestamp stamp, int daysLater)(Code)



getNextDayStart
public static java.sql.Timestamp getNextDayStart(java.sql.Timestamp stamp)(Code)



getWeekStart
public static java.sql.Timestamp getWeekStart(java.sql.Timestamp stamp)(Code)
Return the date for the first day of the week
Parameters:
  stamp -



getWeekStart
public static java.sql.Timestamp getWeekStart(java.sql.Timestamp stamp, int daysLater)(Code)



monthBegin
public static java.sql.Timestamp monthBegin()(Code)
Makes a Timestamp for the beginning of the month A Timestamp of the beginning of the month



nowDate
public static java.util.Date nowDate()(Code)
Return a Date for right now Date for right now



nowDateString
public static String nowDateString()(Code)
Return a string formatted as yyyyMMddHHmmss String formatted for right now



nowTimestamp
public static java.sql.Timestamp nowTimestamp()(Code)
Return a Timestamp for right now Timestamp for right now



toDate
public static java.util.Date toDate(String dateTime)(Code)
Converts a date and time String into a Date
Parameters:
  dateTime - A combined data and time string in the format "MM/DD/YYYY HH:MM:SS", the seconds are optional The corresponding Date



toDate
public static java.util.Date toDate(String date, String time)(Code)
Converts a date String and a time String into a Date
Parameters:
  date - The date String: MM/DD/YYYY
Parameters:
  time - The time String: either HH:MM or HH:MM:SS A Date made from the date and time Strings



toDate
public static java.util.Date toDate(String monthStr, String dayStr, String yearStr, String hourStr, String minuteStr, String secondStr)(Code)
Makes a Date from separate Strings for month, day, year, hour, minute, and second.
Parameters:
  monthStr - The month String
Parameters:
  dayStr - The day String
Parameters:
  yearStr - The year String
Parameters:
  hourStr - The hour String
Parameters:
  minuteStr - The minute String
Parameters:
  secondStr - The second String A Date made from separate Strings for month, day, year, hour, minute, and second.



toDate
public static java.util.Date toDate(int month, int day, int year, int hour, int minute, int second)(Code)
Makes a Date from separate ints for month, day, year, hour, minute, and second.
Parameters:
  month - The month int
Parameters:
  day - The day int
Parameters:
  year - The year int
Parameters:
  hour - The hour int
Parameters:
  minute - The minute int
Parameters:
  second - The second int A Date made from separate ints for month, day, year, hour, minute, and second.



toDateString
public static String toDateString(java.util.Date date)(Code)
Makes a date String in the format MM/DD/YYYY from a Date
Parameters:
  date - The Date A date String in the format MM/DD/YYYY



toDateTimeString
public static String toDateTimeString(java.util.Date date)(Code)
Makes a combined data and time string in the format "MM/DD/YYYY HH:MM:SS" from a Date. If the seconds are 0 they are left off.
Parameters:
  date - The Date A combined data and time string in the format "MM/DD/YYYY HH:MM:SS" where the seconds are left off if they are 0.



toSqlDate
public static java.sql.Date toSqlDate(String date)(Code)
Converts a date String into a java.sql.Date
Parameters:
  date - The date String: MM/DD/YYYY A java.sql.Date made from the date String



toSqlDate
public static java.sql.Date toSqlDate(String monthStr, String dayStr, String yearStr)(Code)
Makes a java.sql.Date from separate Strings for month, day, year
Parameters:
  monthStr - The month String
Parameters:
  dayStr - The day String
Parameters:
  yearStr - The year String A java.sql.Date made from separate Strings for month, day, year



toSqlDate
public static java.sql.Date toSqlDate(int month, int day, int year)(Code)
Makes a java.sql.Date from separate ints for month, day, year
Parameters:
  month - The month int
Parameters:
  day - The day int
Parameters:
  year - The year int A java.sql.Date made from separate ints for month, day, year



toSqlTime
public static java.sql.Time toSqlTime(String time)(Code)
Converts a time String into a java.sql.Time
Parameters:
  time - The time String: either HH:MM or HH:MM:SS A java.sql.Time made from the time String



toSqlTime
public static java.sql.Time toSqlTime(String hourStr, String minuteStr, String secondStr)(Code)
Makes a java.sql.Time from separate Strings for hour, minute, and second.
Parameters:
  hourStr - The hour String
Parameters:
  minuteStr - The minute String
Parameters:
  secondStr - The second String A java.sql.Time made from separate Strings for hour, minute, and second.



toSqlTime
public static java.sql.Time toSqlTime(int hour, int minute, int second)(Code)
Makes a java.sql.Time from separate ints for hour, minute, and second.
Parameters:
  hour - The hour int
Parameters:
  minute - The minute int
Parameters:
  second - The second int A java.sql.Time made from separate ints for hour, minute, and second.



toTimeString
public static String toTimeString(java.util.Date date)(Code)
Makes a time String in the format HH:MM:SS from a Date. If the seconds are 0, then the output is in HH:MM.
Parameters:
  date - The Date A time String in the format HH:MM:SS or HH:MM



toTimeString
public static String toTimeString(int hour, int minute, int second)(Code)
Makes a time String in the format HH:MM:SS from a separate ints for hour, minute, and second. If the seconds are 0, then the output is in HH:MM.
Parameters:
  hour - The hour int
Parameters:
  minute - The minute int
Parameters:
  second - The second int A time String in the format HH:MM:SS or HH:MM



toTimestamp
public static java.sql.Timestamp toTimestamp(String dateTime)(Code)
Converts a date and time String into a Timestamp
Parameters:
  dateTime - A combined data and time string in the format "MM/DD/YYYY HH:MM:SS", the seconds are optional The corresponding Timestamp



toTimestamp
public static java.sql.Timestamp toTimestamp(String date, String time)(Code)
Converts a date String and a time String into a Timestamp
Parameters:
  date - The date String: MM/DD/YYYY
Parameters:
  time - The time String: either HH:MM or HH:MM:SS A Timestamp made from the date and time Strings



toTimestamp
public static java.sql.Timestamp toTimestamp(String monthStr, String dayStr, String yearStr, String hourStr, String minuteStr, String secondStr)(Code)
Makes a Timestamp from separate Strings for month, day, year, hour, minute, and second.
Parameters:
  monthStr - The month String
Parameters:
  dayStr - The day String
Parameters:
  yearStr - The year String
Parameters:
  hourStr - The hour String
Parameters:
  minuteStr - The minute String
Parameters:
  secondStr - The second String A Timestamp made from separate Strings for month, day, year, hour, minute, and second.



toTimestamp
public static java.sql.Timestamp toTimestamp(int month, int day, int year, int hour, int minute, int second)(Code)
Makes a Timestamp from separate ints for month, day, year, hour, minute, and second.
Parameters:
  month - The month int
Parameters:
  day - The day int
Parameters:
  year - The year int
Parameters:
  hour - The hour int
Parameters:
  minute - The minute int
Parameters:
  second - The second int A Timestamp made from separate ints for month, day, year, hour, minute, and second.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.