symfony API

DateHelper Functions

« Back to API menu

1.2 API OpenSearch

Packages

You are currently browsing the symfony API for the 1.2 version. Switch to:

DateHelper.

Function Summary

  • distance_of_time_in_words($from_time, $to_time = null, $include_seconds = false)
  • format_date($date, $format = 'd', $culture = null, $charset = null)
  • format_daterange($start_date, $end_date, $format = 'd', $full_text, $start_text, $end_text, $culture = null, $charset = null)
  • format_datetime($date, $format = 'F', $culture = null, $charset = null)
  • time_ago_in_words($from_time, $include_seconds = false)

Function Details

  • distance_of_time_in_words ($from_time, $to_time = null, $include_seconds = false) Browse code

    $from_time
    $to_time
    $include_seconds

  • format_date ($date, $format = 'd', $culture = null, $charset = null) Browse code

    $date
    $format
    $culture
    $charset

  • format_daterange ($start_date, $end_date, $format = 'd', $full_text, $start_text, $end_text, $culture = null, $charset = null) Browse code

    $start_date
    $end_date
    $format
    $full_text
    $start_text
    $end_text
    $culture
    $charset

  • format_datetime ($date, $format = 'F', $culture = null, $charset = null) Browse code

    $date
    $format
    $culture
    $charset

  • time_ago_in_words ($from_time, $include_seconds = false) Browse code

    $from_time
    $include_seconds

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting.
Sensio Labs also supports several large Open-Source projects.