[datejs commit] r177 - wiki

3 views
Skip to first unread message

codesite...@google.com

unread,
Apr 25, 2008, 5:23:54 PM4/25/08
to ge...@coolite.com
Author: ge...@coolite.com
Date: Fri Apr 25 14:19:36 2008
New Revision: 177

Modified:
wiki/APIDocumentation.wiki

Log:


Modified: wiki/APIDocumentation.wiki
==============================================================================
--- wiki/APIDocumentation.wiki (original)
+++ wiki/APIDocumentation.wiki Fri Apr 25 14:19:36 2008
@@ -4,7 +4,7 @@
=Public Static Methods=
----

-==http://www.datejs.com/images/function.gif Date.today==
+==http://www.datejs.com/images/function.gif today==
===Date.today () : `Date`===

Gets a date that is set to the current date. The time is set to the
start of the day (00:00 or 12:00 AM).
@@ -23,7 +23,7 @@
}}}

.
-==http://www.datejs.com/images/function.gif Date.compare==
+==http://www.datejs.com/images/function.gif compare==
===Date.compare ( `Date` date1, `Date` date2 ) : `Number`===

Compares the first date to the second date and returns an number
indication of their relative values. -1 = this is lessthan date. 0 =
values are equal. 1 = this is greaterthan date.
@@ -50,7 +50,7 @@
}}}

.
-==http://www.datejs.com/images/function.gif Date.equals==
+==http://www.datejs.com/images/function.gif equals==
===Date.equals ( `Date` date1, `Date` date2 ) : `Boolean`===

Compares the first Date object to the second Date object and returns
true if they are equal.
@@ -79,7 +79,7 @@
}}}

.
-==http://www.datejs.com/images/function.gif Date.getDayNumberFromName==
+==http://www.datejs.com/images/function.gif getDayNumberFromName==
===Date.getDayNumberFromName ( `String` dayName ) : `Number`===

Gets the day number (0-6) if given a [CultureInfo culture-specific]
string which is a valid full or abbreviated day name.
@@ -100,7 +100,7 @@
}}}

.
-==http://www.datejs.com/images/function.gif Date.getMonthNumberFromName==
+==http://www.datejs.com/images/function.gif getMonthNumberFromName==
===Date.getMonthNumberFromName ( `String` monthName ) : `Number`===

Gets the month number (0-11) if given a [CultureInfo
culture-specific] string which is a valid full or abbreviated month name.
@@ -122,7 +122,7 @@
}}}

.
-==http://www.datejs.com/images/function.gif Date.isLeapYear==
+==http://www.datejs.com/images/function.gif isLeapYear==
===Date.isLeapYear ( `Number` year ) : `Boolean`===

Returns true if the given year is a leap year, false otherwise.
@@ -143,7 +143,7 @@
}}}

.
-==http://www.datejs.com/images/function.gif Date.getDaysInMonth==
+==http://www.datejs.com/images/function.gif getDaysInMonth==
===Date.getDaysInMonth ( `Number` year, `Number` month ) : `Number`===

Gets the number of days in the month, given a year and month value.
Automatically corrects for leap year.
@@ -164,7 +164,7 @@
}}}

.
-==http://www.datejs.com/images/function.gif Date.getTimezoneAbbreviation==
+==http://www.datejs.com/images/function.gif getTimezoneAbbreviation==
===Date.getTimezoneAbbreviation ( `Number` timezoneOffset, `Boolean`
isDayLightSavingsTime ) : `String`===

Returns a [CultureInfo culture-specific] timezone abbreviation based
on a given offset and a boolean indicating whether daylight savings
time is in effect.
@@ -185,7 +185,7 @@
}}}

.
-==http://www.datejs.com/images/function.gif Date.getTimezoneOffset==
+==http://www.datejs.com/images/function.gif getTimezoneOffset==
===Date.getTimezoneOffset ( `String` timezoneAbbreviation, `Boolean`
isDayLightSavingsTime ) : `Number`===

Gets the timezone offset if given a [CultureInfo culture-specific]
string which is a valid full or abbreviated timezone name and a boolean
indicating whether daylight savings time is in effect.
@@ -205,7 +205,7 @@
}}}

.
-==http://www.datejs.com/images/function.gif Date.parse==
+==http://www.datejs.com/images/function.gif parse==
===Date.parse ( `String` dateString ) : `Date`===

Converts the specified string value into its !JavaScript Date
equivalent using [CultureInfo culture-specific] format information.
@@ -228,7 +228,7 @@
}}}

.
-==http://www.datejs.com/images/function.gif Date.parseExact==
+==http://www.datejs.com/images/function.gif parseExact==
===Date.parseExact ( `String` dateString, `String`
formatStringOrArray ) : `Date`===

Converts the specified string value into its !JavaScript Date
equivalent using the specified format (string) or formats (array). The
format of the string value must match one of the supplied formats exactly.
@@ -251,7 +251,7 @@
}}}

.
-==http://www.datejs.com/images/function.gif Date.validateDay==
+==http://www.datejs.com/images/function.gif validateDay==
===Date.validateDay ( `Number` day, `Number` fullYear, `Number`
monthNumber ) : `Boolean`===

Validates the number is within an acceptable range for the days in a
month [0-MaxDaysInMonth].
@@ -273,7 +273,7 @@
}}}

.
-==http://www.datejs.com/images/function.gif Date.validateHour==
+==http://www.datejs.com/images/function.gif validateHour==
===Date.validateHour ( `Number` hour ) : `Boolean`===

Validates the number is within an acceptable range for hours [0-23].
Returns true if within range, otherwise false.
@@ -293,7 +293,7 @@
}}}

.
-==http://www.datejs.com/images/function.gif Date.validateMillisecond==
+==http://www.datejs.com/images/function.gif validateMillisecond==
===Date.validateMillisecond ( `Number` milliseconds ) : `Boolean`===

Validates the number is within an acceptable range for milliseconds
[0-999]. Returns true if within range, otherwise false.
@@ -312,7 +312,7 @@
}}}

.
-==http://www.datejs.com/images/function.gif Date.validateMinute==
+==http://www.datejs.com/images/function.gif validateMinute==
===Date.validateMinute ( `Number` minutes ) : `Boolean`===

Validates the number is within an acceptable range for minutes
[0-59]. Returns true if within range, otherwise false.
@@ -332,7 +332,7 @@
}}}

.
-==http://www.datejs.com/images/function.gif Date.validateMonth==
+==http://www.datejs.com/images/function.gif validateMonth==
===Date.validateMonth ( `Number` month ) : `Boolean`===

Validates the number is within an acceptable range for months [0-11].
@@ -352,7 +352,7 @@
}}}

.
-==http://www.datejs.com/images/function.gif Date.validateSecond==
+==http://www.datejs.com/images/function.gif validateSecond==
===Date.validateSecond ( `Number` second ) : `Boolean`===

Validates the number is within an acceptable range for seconds
[0-59]. Returns true if within range, otherwise false.
@@ -372,7 +372,7 @@
}}}

.
-==http://www.datejs.com/images/function.gif Date.validateYear==
+==http://www.datejs.com/images/function.gif validateYear==
===Date.validateYear ( `Number` year ) : `Boolean`===

Validates the number is within an acceptable range for years [0-9999].
@@ -650,7 +650,7 @@

====See Also====
[APIDocumentation#isBefore isBefore]
- [APIDocumentation#Date.isLeapYear Date.isLeapYear]
+ [APIDocumentation#isLeapYear Date.isLeapYear]

.
==http://www.datejs.com/images/function.gif isBefore==

Reply all
Reply to author
Forward
0 new messages