开发者 | kingkode |
---|---|
更新时间 | 2016年5月21日 01:18 |
捐献地址: | 去捐款 |
PHP版本: | 3.0.1 及以上 |
WordPress版本: | 4.5.2 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
[jclocksgmt]
This shortcode will display the default clock for Greenwich, England
Additional attributes:
[jclocksgmt title='Houston, TX, USA']
Title of location[jclocksgmt offset='-6']
Set Standard GMT offset[jclocksgmt dst='true]
set FALSE if location does not need to observe dst[jclocksgmt digital=true]
Display digital clock[jclocksgmt analog=true]
Display analog clock[jclocksgmt timeformat='hh:mm A']
Time format[jclocksgmt date=false]
Display date[jclocksgmt dateformat='MM/DD/YYYY']
Date format[jclocksgmt skin=1]
Set 1 of 5 clock themes.[jclocksgmt title='Houston, TX, USA' offset='-6']
See more documentation in FAQ section.
jclocksgmt-wp
directory to the /wp-content/plugins/
directory[jclocksgmt]
on any page to display the clock.A shortcode is a WordPress-specific code that lets you do nifty things with very little effort. Shortcodes can embed files or create objects that would normally require lots of complicated, ugly code in just one line. Shortcode = shortcut. To use a shortcode, simple enter it on the page or post in your WordPress blog as described below and it will be replaced on the live page with the additional functionality.
[jclocksgmt]
This shortcode will display the default clock for Greenwich, England
Additional attributes:
[jclocksgmt title='Houston, TX, USA']
Title of location[jclocksgmt offset='-6']
Set Standard GMT offset[jclocksgmt dst='true]
set FALSE if location does not need to observe dst[jclocksgmt digital=true]
Display digital clock[jclocksgmt analog=true]
Display analog clock[jclocksgmt timeformat='hh:mm A']
Time format[jclocksgmt date=false]
Display date[jclocksgmt dateformat='MM/DD/YYYY']
Date format[jclocksgmt skin=1]
Set 1 of 5 clock themes.[jclocksgmt title='Houston, TX, USA' offset='-6']
GMT offsets are the hour differences from one location compared to Greenwich Mean Time in Greenwich, London. Common offsets by time zone: (only use the number after GMT: GMT-2 = offset: '-2' Daylight Saving Time converted automatically)
GMT-12
| EniwetokGMT-11
| SamoaGMT-10
| HawaiiGMT-9
| AlaskaGMT-8
| PST, Pacific USGMT-7
| MST, Mountain USGMT-6
| CST, Central USGMT-5
| EST, Eastern USGMT-4
| Atlantic, CanadaGMT-3
| Brazilia, Buenos AriesGMT-2
| Mid-AtlanticGMT-1
| Cape VerdesGMT 0
| Greenwich Mean TimeGMT+1
| Berlin, RomeGMT+2
| Israel, CairoGMT+3
| Moscow, KuwaitGMT+7
| Abu Dhabi, MuscatGMT+5
| Islamabad, KarachiGMT+6
| Almaty, DhakaGMT+7
| Bangkok, JakartaGMT+8
| Hong Kong, BeijingGMT+9
| Tokyo, OsakaGMT+10
| Sydney, Melbourne, GuamGMT+11
| Magadan, Soloman Is.GMT+12
| Fiji, Wellington, AucklandTime Formatting: FORMAT| OUTPUT | MEANING
HH
| 19
| 24-hour format of hour with leading zero (two digits long).hh
| 07
| 12-hour format of hour with leading zero (two digits long).H
| 19
| 24-hour format of hour without leading zeros.h
| 7
| 12-hour format of hour without leading zeros.mm
| 01
| Minutes with the leading zero (two digits long).m
| 1
| Minutes without the leading zero.ss
| 08
| Seconds with the leading zero (two digits long).s
| 8
| Seconds without the leading zero.a
| pm
| Lowercase am or pm.A
| PM
| Uppercase am or pm.SSS
| 095
| Milliseconds with leading zeros (three digits long).S
| 95
| Milliseconds without leading zeros.YYYY
| 2016
| Four-digit representation of the year.YY
| 16
| Two-digit representation of the year.MMMM
| April
| Full textual representation of the month.MMM
| Apr
| Three letter representation of the month.MM
| 04
| Month with the leading zero (two digits long).M
| 4
| Month without the leading zero.DDDD
| Friday
| Full textual representation of the day of the week.DDD
| Fri
| Three letter representation of the day of the week.DD
| 01
| Day of the month with leading zero (two digits long).D
| 1
| Day of the month without leading zero.