Added function yii\i18n\Formatter::asDuration()

closes #5146