Downloads » Resources » DateTime

DateTime

  • Currently 3/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Votes: 2

DateTime 1.03

Added custom time shift

Works with MODx Version(s): All
Submitted: Jan 27th 2008 | License: Free | Downloads: 317

Outputs time as a string. If no time specified, displays current time. Uses server offset and custom time shift (new).

Description

Previous version DateTime 1.02

Parameters:
  • &format (see http://php.net/strftime) = %d-%m-%Y %H:%M:%S (01-10-2007 15:40:37)
  • &timestamp (Unix-timestamp) = now (current time & date )
  • &shift (in seconds) = 0 (for +5 days shift use 432000 = 60*60*24*5)


Counts server offset (set in Manager - Administration: System Configuration)automaticaly.

* Original author Alex Butter.
* 1.02 amended 08Aug06 by Paul Gregory, inspired by doze & breezer.
* 1.03 by Aramaki 27 Jan 2008

Instructions

Installation
Create new snippet DateTime and paste txt-file content

Usage
[[DateTime? &format=`%d.%m.%Y` &shift=`432000` &timestamp=``]]

Previous Releases

DateTime 1.02

Initial Release

Works with MODx Version(s): All
Submitted: Aug 8th 2006 | License: None Specified | Downloads: 1317


Extras

No results found.


( back to top )