DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:date

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:date [2014-12-06 11:54] psdplugin:date [2020-09-25 06:38] (current) – lastupdate Aleksandr
Line 2: Line 2:
  
 ---- plugin ---- ---- plugin ----
-description: A wrapper plugin over the php functions strftime and date.+description: A wrapper plugin for the php functions strftime and date
 author     : Marcel Pietschmann  author     : Marcel Pietschmann 
 email      : mpietsch@astro.physik.uni-potsdam.de email      : mpietsch@astro.physik.uni-potsdam.de
 type       : syntax type       : syntax
-lastupdate : 2014-12-02 +lastupdate : 2016-08-28 
-compatible : Hrun+compatible : Detritus, Hrun, Elenor of Tsort
 depends    :  depends    : 
 conflicts  conflicts 
 similar    :  similar    : 
-tags       : date, syntax+tags       : date, time, strftime, syntax
  
-downloadurl: http://github.com/maphy-psd/dokuwiki-plugin-date/zipball/master +downloadurl: https://github.com/maphy-psd/dokuwiki-plugin-date/zipball/master 
-bugtracker : http://github.com/maphy-psd/dokuwiki-plugin-date/issues +bugtracker : https://github.com/maphy-psd/dokuwiki-plugin-date/issues 
-sourcerepo : http://github.com/maphy-psd/dokuwiki-plugin-date/+sourcerepo : https://github.com/maphy-psd/dokuwiki-plugin-date/
 donationurl:  donationurl: 
  
Line 22: Line 22:
  
 ===== Description ===== ===== Description =====
 +
 This plugin gives you the possibilities of the [[http://php.net/manual/en/function.strftime.php|strftime]] or [[http://php.net/manual/en/function.date.php|date]] function. With the [[http://php.net/manual/en/datetime.formats.relative.php|relative date/time formats]] for the [[http://php.net/manual/en/function.strtotime.php|strtotime]] function you can create any date/time output you want. This plugin gives you the possibilities of the [[http://php.net/manual/en/function.strftime.php|strftime]] or [[http://php.net/manual/en/function.date.php|date]] function. With the [[http://php.net/manual/en/datetime.formats.relative.php|relative date/time formats]] for the [[http://php.net/manual/en/function.strtotime.php|strtotime]] function you can create any date/time output you want.
  
 ===== Installation ===== ===== Installation =====
-Install the plugin using the [[plugin:plugin|Plugin Manager]] and this [[https://github.com/maphy-psd/dokuwiki-plugin-date/tarball/master|download URL]], which points to latest version of the plugin. See [[:plugin_installation_instructions]] on how to install plugins manually.+ 
 +Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually.  
 + 
 +For development version, see [[plugin:date#development|Development]].
  
 ===== Examples/Usage ===== ===== Examples/Usage =====
Line 52: Line 56:
  
 === timestamp === === timestamp ===
 +
 //values//: Unix timestamp //values//: Unix timestamp
  
Line 57: Line 62:
  
 === now === === now ===
 +
 //values//: Unix timestamp //values//: Unix timestamp
  
Line 69: Line 75:
  
 === locale === === locale ===
 +
 //values//: A category/locale name after RFC 1766/ISO 639 //values//: A category/locale name after RFC 1766/ISO 639
  
Line 76: Line 83:
  
 === mode === === mode ===
 +
 //values//: date //values//: date
  
Line 82: Line 90:
 ===== Development ===== ===== Development =====
  
-Fork me on [[http://github.com/maphy-psd/dokuwiki-plugin-date/|Github]] and make Pull Requests. You can download preview Versions with this [[https://github.com/maphy-psd/dokuwiki-plugin-date/tarball/preview|URL]]. Please note, that the preview versions maybe not fully stable. +Fork me on [[https://github.com/maphy-psd/dokuwiki-plugin-date/|Github]] and make Pull Requests. You can download preview Versions with this [[https://github.com/maphy-psd/dokuwiki-plugin-date/zipball/RC|URL]]. Please note, that the preview versions maybe not fully stable. 
  
 === Change Log === === Change Log ===
  
 See [[https://github.com/maphy-psd/dokuwiki-plugin-date/releases|Github releases]] See [[https://github.com/maphy-psd/dokuwiki-plugin-date/releases|Github releases]]
- 
-  * **2014-12-02** 
-    * Initial release 
  
 === Known Bugs and Issues === === Known Bugs and Issues ===
  
-Use the bugtracker on [[http://github.com/maphy-psd/dokuwiki-plugin-date/issues|Github issues]] or email me.+Use the bugtracker on [[https://github.com/maphy-psd/dokuwiki-plugin-date/issues|Github issues]] or email me.
  
 === ToDo/Wish List === === ToDo/Wish List ===
Line 102: Line 107:
  
 ==== How i get an Unix timestamp? ==== ==== How i get an Unix timestamp? ====
 +
 The Unix time gives you the number of seconds that have elapsed since 00:00:00 Coordinated Universal Time (UTC), Thursday, 1 January 1970. It's a system for describing instants in time The Unix time gives you the number of seconds that have elapsed since 00:00:00 Coordinated Universal Time (UTC), Thursday, 1 January 1970. It's a system for describing instants in time
  
-Use [[http://php.net/manual/en/function.strtotime.php|strtotime]] or [[http://php.net/manual/en/function.mktime.php|mktime]] or [[http://www.unixtimestamp.com|Unix Timestamp - Epoch Converter]]+Use [[http://php.net/manual/en/function.strtotime.php|strtotime]] or [[http://php.net/manual/en/function.mktime.php|mktime]] or [[http://www.unixtimestamp.com|Unix Timestamp - Epoch Converter]] or a [[https://www.easyunitconverter.com/unix-epoch-time-converter|Unix Epoch Time Converter]]
  
 ==== Monday this week ==== ==== Monday this week ====
 +
 The strtotime('Monday this week') switches the week on sunday. This is a bug in php: The strtotime('Monday this week') switches the week on sunday. This is a bug in php:
 [[https://bugs.php.net/bug.php?id=63740|strtotime seems to use both sunday and monday as start of week]] [[https://bugs.php.net/bug.php?id=63740|strtotime seems to use both sunday and monday as start of week]]
Line 113: Line 120:
  
 ===== Discussion ===== ===== Discussion =====
 +
 +locale key doesn't work. (Frusterick Manners) \\ (raspbian jessie + locale has been installed) \\ \\ --- dokufan //Wed 22 Mar 07:27//
plugin/date.1417863258.txt.gz · Last modified: 2014-12-06 11:54 by psd

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki