JDate/1.5

From Joomla! Documentation
< JDate(Difference between revisions)
Jump to: navigation, search
(New page: __NOTOC__ <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> </span> {{Description:JDate}} ===Defined in=== librari...)
 
m (See also: fixing link to API)
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 +
=={{JVer|1.5}} JDate==
 +
===Description===
 +
{{Description:JDate}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[Description:JDate|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JDate|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
{{Description:JDate}}
 
===Defined in===
 
libraries/joomla/utilities/date.php
 
===Subpackage===
 
[[Subpackage Utilities/1.5|Utilities]]
 
===Extends===
 
[[JObject/1.5|JObject]]
 
===Extended by===
 
 
===Methods===
 
===Methods===
 
{| class="wikitable sortable"
 
{| class="wikitable sortable"
 
|-
 
|-
 +
!Visibility
 
!Method name
 
!Method name
 
!Description
 
!Description
 
|-
 
|-
 +
|public
 
|[[JDate::__construct/1.5|__construct]]
 
|[[JDate::__construct/1.5|__construct]]
|Creates a new instance of  representing a given date.
+
|Creates a new instance of  representing a given date.  
 
|-
 
|-
 +
|public
 
|[[JDate::_dayToString/1.5|_dayToString]]
 
|[[JDate::_dayToString/1.5|_dayToString]]
|Translates day of week number to string.
+
|Translates day of week number to string.  
 
|-
 
|-
 +
|public
 
|[[JDate::_monthToString/1.5|_monthToString]]
 
|[[JDate::_monthToString/1.5|_monthToString]]
|Translates month number to string.
+
|Translates month number to string.  
 
|-
 
|-
 +
|public
 
|[[JDate::_strftime/1.5|_strftime]]
 
|[[JDate::_strftime/1.5|_strftime]]
|Translates needed strings in for  (see ).
+
|Translates needed strings in for  (see ).  
 
|-
 
|-
 +
|public
 
|[[JDate::getOffset/1.5|getOffset]]
 
|[[JDate::getOffset/1.5|getOffset]]
|Get the date offset (in hours).
+
|Get the date offset (in hours).  
 
|-
 
|-
 +
|public
 
|[[JDate::setOffset/1.5|setOffset]]
 
|[[JDate::setOffset/1.5|setOffset]]
|Set the date offset (in hours).
+
|Set the date offset (in hours).  
 
|-
 
|-
 +
|public
 
|[[JDate::toFormat/1.5|toFormat]]
 
|[[JDate::toFormat/1.5|toFormat]]
|Gets the date in a specific format.
+
|Gets the date in a specific format.  
 
|-
 
|-
 +
|public
 
|[[JDate::toISO8601/1.5|toISO8601]]
 
|[[JDate::toISO8601/1.5|toISO8601]]
|Gets the date as an ISO 8601 date.
+
|Gets the date as an ISO 8601 date.  
 
|-
 
|-
 +
|public
 
|[[JDate::toMySQL/1.5|toMySQL]]
 
|[[JDate::toMySQL/1.5|toMySQL]]
|Gets the date as in MySQL datetime format.
+
|Gets the date as in MySQL datetime format.  
 
|-
 
|-
 +
|public
 
|[[JDate::toRFC822/1.5|toRFC822]]
 
|[[JDate::toRFC822/1.5|toRFC822]]
|Gets the date as an RFC 822 date.
+
|Gets the date as an RFC 822 date.  
 
|-
 
|-
 +
|public
 
|[[JDate::toUnix/1.5|toUnix]]
 
|[[JDate::toUnix/1.5|toUnix]]
|Gets the date as UNIX time stamp.
+
|Gets the date as UNIX time stamp.  
 
|-
 
|-
 
|}
 
|}
 +
* '''Defined in''' libraries/joomla/utilities/date.php
 +
* '''Extends''' [[JObject/1.5|JObject]]
 
===Importing===
 
===Importing===
 
<source lang="php">jimport( 'joomla.utilities.date' );</source>
 
<source lang="php">jimport( 'joomla.utilities.date' );</source>
 
===See also===
 
===See also===
 +
* {{JVer|1.5}} '''JDate''' on [http://api.joomla.org/1.5/Joomla-Framework/Utilities/JDate.html api.joomla.org]
 +
* {{JVer|1.5}} '''JDate source code''' on [[jframework15:utilities/date.php|JoomlaCode]]
 +
* {{JVer|1.5}} Subpackage [[Subpackage Utilities/1.5|Utilities]]
 +
* [[JDate|Other versions of JDate]]
 +
{{SeeAlso:JDate}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JDate|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JDate|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
{{SeeAlso:JDate}}
+
===User contributed notes===
* [[JDate|Other versions of this class]]
+
* [http://api.joomla.org/Joomla-Framework/Utilities/JDate.html JDate on api.joomla.org]
+
===Examples===
+
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 68: Line 79:
 
category=ClassExample
 
category=ClassExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:Framework]][[Category:Framework 1.5]][[Category:JDate]]</noinclude>
 
<noinclude>[[Category:Framework]][[Category:Framework 1.5]][[Category:JDate]]</noinclude>

Latest revision as of 14:17, 13 February 2013

[edit] Joomla 1.5 JDate

[edit] Description

Description:JDate [Edit Descripton]

[edit] Methods

Visibility Method name Description
public __construct Creates a new instance of representing a given date.
public _dayToString Translates day of week number to string.
public _monthToString Translates month number to string.
public _strftime Translates needed strings in for (see ).
public getOffset Get the date offset (in hours).
public setOffset Set the date offset (in hours).
public toFormat Gets the date in a specific format.
public toISO8601 Gets the date as an ISO 8601 date.
public toMySQL Gets the date as in MySQL datetime format.
public toRFC822 Gets the date as an RFC 822 date.
public toUnix Gets the date as UNIX time stamp.
  • Defined in libraries/joomla/utilities/date.php
  • Extends JObject

[edit] Importing

jimport( 'joomla.utilities.date' );

[edit] See also

SeeAlso:JDate [Edit See Also]

[edit] User contributed notes

<CodeExamplesForm />


Personal tools
Namespaces

Variants
Actions
Navigation
Joomla! Sites
Toolbox