Free Script and utilities
Table API generator
Old SQL guide
Old PL/SQL guide
A Jersey Linux User Group?
|<1em margin-right:1em="" class="div">|
PHP utilities (used in dbff)
Utilities that was written for dbff, but can be used independently. These are:
jdate - date-functions
Date class functions:
str2ts - Convert a string to a timestamp that can be used with eg "date()"
- More strict than strtotime and could be replaced by php 5 functions
format - Format a timestamp to a date with the dateformat set in the class.
dateDiff - Calculate date difference in days.
addDays - Add a number of days to a date.
subtractDays - Subtract a number of days from a date.
week - Retorn ISO week for a date.
weekStartDate - Get the start date of a week
chkDtTimeArr - Check if an array with date or datetime elements are a valid date/time
dtStr2dtArr - Convert a date-string to a "date-array"
getElements - Pars a date string according to format, and returns all date elements found.
All functions sets error message in errmsg string if they fail.
Code is released under the terms of the GNU General Public License as published by the Free Software Foundation.