public final class Today
extends java.lang.Object
The class caches the date value, updating it once a day as needed. This avoids creating many, many objects just to get the current date.
It is designed for thread-safety.
Modifier and Type | Class and Description |
---|---|
static class |
Today.Test
Some testing.
|
Constructor and Description |
---|
Today() |
Modifier and Type | Method and Description |
---|---|
static java.sql.Date |
today()
Return today's date as a java.sql.Date, with the time fields set to
zero.
|
Copyright ? 2002 Clarity Systems Group, LLC. All Rights Reserved.