You are here

public function ForcePasswordChangeServiceInterface::getTextDate in Force Password Change 2.0.x

Same name and namespace in other branches
  1. 8 src/Service/ForcePasswordChangeServiceInterface.php \Drupal\force_password_change\Service\ForcePasswordChangeServiceInterface::getTextDate()

Converts a number of seconds to a human-friendly time period.

Parameters

int $seconds: The number of seconds to convert.

Return value

Drupal\Core\StringTranslation\TranslatableMarkup The amount of time in years, weeks, days or hours. The returned values is a translated string.

1 method overrides ForcePasswordChangeServiceInterface::getTextDate()
ForcePasswordChangeService::getTextDate in src/Service/ForcePasswordChangeService.php
Converts a number of seconds to a human-friendly time period.

File

src/Service/ForcePasswordChangeServiceInterface.php, line 182

Class

ForcePasswordChangeServiceInterface

Namespace

Drupal\force_password_change\Service

Code

public function getTextDate($seconds);