Any way to make a date using microseconds?

Is there a way to render a string that represents the current time in microseconds when you do not have access to the branch instance? I mean that you can work with the template only with the help of NOT .

With the following pattern:

{{ "now"|date("Ymd_His") }}

I can get date + time fractions, but the desired result will be

20150616_202042.123456
               ^-- here is the most interesting part

So, is there a chance for a solution based on a clean template?

I did research, and all I could find was expanding the branch engine, which I cannot do in the current case.

UPD : the solution I'm looking for is not limited to using the function date()explicitly and can use everything that is allowed in the branch template.

UPD 2 . This is not a symfony2 application. This is not a web application.

+4
1

, , ( PHP 5.4.0):

{{ app.request.server.get('REQUEST_TIME_FLOAT') }}

, , Symfony2.

0

All Articles