|
|
|
7
Computes the difference between two dates in seconds
8
If you only want to compare yyyy-mm-dd you can use the java.sql.Date class, the valueOf method does the trick. It's perfectly safe as the sql Date class is a subclass of the Date class.
Check out the docs here for more detail.
enjoy
Check out the docs here for more detail.
enjoy
5
This function will convert a Date (passed as type TDateTime) to a long-format Julian calendar date (result as type String).
1
Sorts list of files by date of change, most recent ones first
1
This is a handy code for displaying date in spanish. On line example:
To write a date in Spanish
See discussion: here
To write a date in Spanish
See discussion: here
5
convert WMI, date - time values
4
This function will take four arguments, the year, month, day and number of days in the future you want to go and return to you as an array (year,month,day) of that date.
It is a simple function that is only for convenience. It is meant to be used in conjunction with the list() command.
It is a simple function that is only for convenience. It is meant to be used in conjunction with the list() command.
4
This function will let you find the Sunday, Monday, Tuesday, etc of a month and return to you that date.
It is a modification of a script I found online at this site: http://filchiprogrammer.wordpress.com/2008/02/27/getting-the-first-monday-of-the-month/.
The function takes three arguments, the month, year and the weekday you are looking for. The weekday is represented by an integer, 0 for Sunday, 1 for Monday and so on.
It is a modification of a script I found online at this site: http://filchiprogrammer.wordpress.com/2008/02/27/getting-the-first-monday-of-the-month/.
The function takes three arguments, the month, year and the weekday you are looking for. The weekday is represented by an integer, 0 for Sunday, 1 for Monday and so on.
14
daysBeteenDates will calculate the number of days between 2 dates in the form of 'YYYY-MM-DD'.
7
A handy class I use all the time to encapsulate the idea of whether two events coincide. For example, given a time period representing a shift, and a list of time periods representing transactions or sessions or whatever, find which ones are either totally or partially within the time period. This class make it a bit easier.







