symfony API

DateHelper Functions

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.2 API OpenSearch

Packages

You are currently browsing the symfony API for the 1.2 version. Switch to:
This version of symfony is not maintained anymore.
If some of your projects still use this version, consider upgrading as soon as possible.

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