Documentation · ViewHelper reference

XSD schema file | vhs master

System / TimestampViewHelper

System: UNIX Timestamp

Returns the current system UNIX timestamp as integer. Useful combined with the Math group of ViewHelpers:

<!-- adds exactly one hour to a DateTime and formats it -->
<f:format.date format="H:i">{dateTime.timestamp -> v:math.sum(b: 3600)}</f:format.date>

/

  • Tag usage example

    <v:system.timestamp>
    	<!-- tag content - may be ignored! -->
    </v:system.timestamp>
  • Inline usage example

    {v:system.timestamp()}

Arguments

Argument Description Type
Required attribute

Revision history

commit 3d96dee7397c684c88845f200768abadace73830
Author: Claus Due <*****@wildside.dk>
Date:   Fri Dec 28 01:56:17 2012 +0100

    [FEATURE] System / Timestamp and DateTime ViewHelpers

commit 123329dd8619fee4a18013653cdc34ad7e387fd1
Author: Claus Due <*****@wildside.dk>
Date:   Wed Jan 23 23:00:42 2013 +0100

    [DOC] Doc comment for System / Timestamp ViewHelper

commit da31bad1d9bb058c072ddb5591e8ed907a1ae8e1
Author: Claus Due <*****@namelesscoder.net>
Date:   Tue Dec 31 23:08:37 2013 +0100

    [TASK] Happy new year!

commit d2e531da034976e6db1478eef5a8478595fd16fe
Author: Claus Due <*****@namelesscoder.net>
Date:   Sun Jan 5 00:45:10 2014 +0100

    [TASK] Migrate to using namespace core class names

commit da7677bc74f14e9a9300e4ba4487e52c3cb97642
Author: Claus Due <*****@namelesscoder.net>
Date:   Sun Apr 20 01:13:33 2014 +0200

    [TASK] Switch to namespaces

commit 12ff0ddfb8d36c51f2d3befde7ae812177c80d5d
Author: Xaver Maierhofer <*****@xwissen.info>
Date:   Wed Jun 11 00:01:47 2014 +0200

    [TASK] CGL remove use leading backslash
    PHP Docs
    Note that for namespaced names (fully qualified namespace names containing namespace separator, such as Foo\Bar as opposed to global names that do not, such as FooBar),
    the leading backslash is unnecessary and not recommended, as import names must be fully qualified, and are not processed relative to the current namespace.

commit 8257bd7095e568e99d10622babd726eeb549699f
Author: Claus Due <*****@namelesscoder.net>
Date:   Sat Oct 4 16:24:52 2014 +0200

    [TASK] Increase coverage

commit 8bb2fc5ee124ba19b0a0ab8e061c9a153fc4651f
Author: Xaver Maierhofer <*****@xwissen.info>
Date:   Sun Jan 18 17:56:13 2015 +0100

    [TASK] Reference Copyright to license.md file