Title: TK Timestamp to Human Readable Date
Author: Clifford Paulick
Published: <strong>22 ژانویه 2020</strong>
Last modified: 22 ژانویه 2020

---

جستجوی افزونه‌ها

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/tk-timestamp-to-human.svg)

# TK Timestamp to Human Readable Date

 توسط [Clifford Paulick](https://profiles.wordpress.org/cliffpaulick/)

[دانلود](https://downloads.wordpress.org/plugin/tk-timestamp-to-human.1.0.1.zip)

 * [جزئیات](https://fa.wordpress.org/plugins/tk-timestamp-to-human/#description)
 * [نقد و بررسی‌ها](https://fa.wordpress.org/plugins/tk-timestamp-to-human/#reviews)
 * [توسعه](https://fa.wordpress.org/plugins/tk-timestamp-to-human/#developers)

 [پشتیبانی](https://wordpress.org/support/plugin/tk-timestamp-to-human/)

## توضیحات

#### All Available Shortcode Arguments

    ```
    'timestamp'  => '', // or use the 'post_id' and 'field_timestamp' arguments
    'format'     => 'c', // see https://www.php.net/manual/en/function.date.php
    'time_zone'  => '', // defaults to WP's General Settings time zone (if valid PHP time zone), else UTC. Only supports a PHP named time zone -- see https://www.php.net/manual/en/timezones.php
    'field_name' => '', // the raw name (including the `wpcf-` prefix if a Types field) or a custom field that should have a UTC timestamp as its value
    'post_id'    => '', // applicable if using the 'field_timestamp' argument - defaults to current post if empty
    ```

#### Shortcode Examples

1)
 Shortcode: `[tk_timestamp_human timestamp="1608299220"]`

(Assuming your WordPress General Settings time zone is set to ‘Europe/Amsterdam’)

Expected Result: `2020-12-18T14:47:00+01:00`

2)
 Shortcode: `[tk_timestamp_human timestamp="1608299220" time_zone="America/Chicago"]`

Expected Result: `2020-12-18T07:47:00-06:00`

3)
 Shortcode: `[tk_timestamp_human timestamp="1608299220" time_zone="UTC"]`

Expected Result: `2020-12-18T13:47:00+00:00`

4)
 Shortcode: `[tk_timestamp_human timestamp="1608299220" time_zone="America/Chicago"
format="j F, Y"]`

Expected Result: `18 December, 2020`

#### Global Function

The `tk_timestamp_to_human_wp_all_export()` global function is available as a wrapper
for the shortcode, using all its defaults except requiring the Timestamp argument
and optionally passing the Format and Time Zone parameters.

This can be handy for using with WP All Export ([http://www.wpallimport.com/tour/export-developer-friendly/](http://www.wpallimport.com/tour/export-developer-friendly/)),
such as to export a custom field that’s a UTC timestamp value to a human-readable
format, such as if the system you’re moving the data to requires a specific format.

## عکس‌های صفحه

 * [[
 * Basic usage
 * [[
 * Example in UTC
 * [[
 * Example in America/Chicago
 * [[
 * Example in America/Chicago, with formatting

## نقد و بررسی‌ها

نقد و بررسی‌ای برای این افزونه یافت نشد.

## توسعه دهندگان و همکاران

“TK Timestamp to Human Readable Date” نرم افزار متن باز است. افراد زیر در این افزونه
مشارکت کرده‌اند.

مشارکت کنندگان

 *   [ Clifford Paulick ](https://profiles.wordpress.org/cliffpaulick/)

[ترجمه “TK Timestamp to Human Readable Date” به زبان شما.](https://translate.wordpress.org/projects/wp-plugins/tk-timestamp-to-human)

### علاقه‌ مند به توسعه هستید؟

[Browse the code](https://plugins.trac.wordpress.org/browser/tk-timestamp-to-human/),
check out the [SVN repository](https://plugins.svn.wordpress.org/tk-timestamp-to-human/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/tk-timestamp-to-human/)
by [RSS](https://plugins.trac.wordpress.org/log/tk-timestamp-to-human/?limit=100&mode=stop_on_copy&format=rss).

## گزارش تغییرات

#### 1.0.1

 * January 21, 2020
 * Remove link to settings because there aren’t any settings to see.
 * Remove loading of empty CSS/JS files on Admin and Frontend.
 * Fix for the shortcode’s default date format not coming through, making the shortcode
   not have a valid result.
 * Added `$format` as the 2nd parameter for `tk_timestamp_to_human_wp_all_export()`.
 * Fallback time zone (if WP’s isn’t a valid PHP time zone) changed from ‘America/
   Edmonton’ to ‘UTC’.
 * Removed this plugin recommending installing WP All Export plugin and all code
   regarding required plugins or themes.
 * Tested working with WordPress 5.3+ even though this plugin’s code was not updated
   to use its new `wp_time()`; we just don’t need it for this plugin.
 * Language files and translatable strings setup for publishing to WordPress.org

#### 1.0.0

 * September 24, 2019
 * Initial version.
 * FYI: Was not available on WordPress.org.

## اطلاعات

 *  نگارش **1.0.1**
 *  Last updated **6 سال پیش**
 *  نصب‌های فعال **10+**
 *  نگارش وردپرس ** 4.5 یا بالاتر **
 *  Tested up to **5.3.21**
 *  نگارش PHP ** 7.1.0 یا بالاتر **
 *  زبان
 * [English (US)](https://wordpress.org/plugins/tk-timestamp-to-human/)
 * Tags
 * [import-export](https://fa.wordpress.org/plugins/tags/import-export/)[shortcode](https://fa.wordpress.org/plugins/tags/shortcode/)
   [timestamp](https://fa.wordpress.org/plugins/tags/timestamp/)[Toolset](https://fa.wordpress.org/plugins/tags/toolset/)
 *  [نمایش پیشرفته](https://fa.wordpress.org/plugins/tk-timestamp-to-human/advanced/)

## امتیازها

هنوز هیچ نقدی ارسال نشده است.

[Your review](https://wordpress.org/support/plugin/tk-timestamp-to-human/reviews/#new-post)

[مشاهده همه بررسی‌ها](https://wordpress.org/support/plugin/tk-timestamp-to-human/reviews/)

## مشارکت کنندگان

 *   [ Clifford Paulick ](https://profiles.wordpress.org/cliffpaulick/)

## پشتیبانی

چیزی برای گفتن دارید؟ نیاز به کمک دارید؟

 [مشاهده انجمن پشتیبانی](https://wordpress.org/support/plugin/tk-timestamp-to-human/)