Changeset 986759
- Timestamp:
- 09/10/2014 07:53:45 PM (12 years ago)
- Location:
- date-calculator
- Files:
-
- 2 edited
-
tags/1.0/readme.txt (modified) (5 diffs)
-
trunk/readme.txt (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
date-calculator/tags/1.0/readme.txt
r986755 r986759 14 14 The Date Calculator plugin has two basic functions. 15 15 16 =1.=It returns the current date via the shortcode [date_now] in posts, pages and also in Contact Form 7-forms.16 1. It returns the current date via the shortcode [date_now] in posts, pages and also in Contact Form 7-forms. 17 17 18 =2.=It can calculate a date up [date_add] or down [date_sub] and returns it in posts, pages and also in Contact Form 7 forms.18 2. It can calculate a date up [date_add] or down [date_sub] and returns it in posts, pages and also in Contact Form 7 forms. 19 19 20 20 This plugin enable the shortcode-support within Contact Form 7-forms so that the Date Calculator-shortcodes can also be used there. … … 26 26 27 27 == Frequently Asked Questions == 28 How are the short codes28 How are the shortcodes? 29 29 30 30 The following shortcodes are available: 31 32 31 <code>[date_add day="1" month="1" year="1" show="dayonly/monthonly/yearonly"]</code> 33 32 <code>[date_sub day="1" month="1" year="1" show="dayonly/monthonly/yearonly"]</code> 34 33 35 34 36 <b>Examples:</b> 37 35 Examples: 38 36 39 37 2.1 - Calculating the date down: 40 38 Suppose today is the 01.10.2014 41 39 42 <code>[date_sub day="1"]</code> returns: 30.09.201440 <code>[date_sub day="1"]</code> returns: 30.09.2014 43 41 <code>[date_sub month="3"]</code> returns: 01.07.2014 44 <code>[date_sub year="4"]</code> returns: 01.10.201042 <code>[date_sub year="4"]</code> returns: 01.10.2010 45 43 46 <code>[date_sub day="1" month="3" year="4"]</code> would display: 30.06.201044 <code>[date_sub day="1" month="3" year="4"]</code> returns: 30.06.2010 47 45 48 46 … … 50 48 Suppose today is the 01.10.2014 51 49 52 <code>[date_add day="1"]</code> returns: 02.10.201450 <code>[date_add day="1"]</code> returns: 02.10.2014 53 51 <code>[date_add month="3"]</code> returns: 01.01.2015 54 <code>[date_add year="4"]</code> returns: 01.10.201852 <code>[date_add year="4"]</code> returns: 01.10.2018 55 53 56 54 <code>[date_add day="1" month="3" year="4"]</code> returns: 02.01.2018 … … 60 58 61 59 It is also possible to only impersonate one part of the date, for example, only the day 62 This is specified with the "show-parameter". 60 This is specified with the "show-parameter". 61 Suppose today is the 01.10.2014 63 62 64 65 <code>[date_add day="1" show="dayonly"]</code> returns: 02 63 <code>[date_add day="1" show="dayonly"]</code> returns: 02 66 64 <code>[date_add month="3" show="monthonly"]</code> returns: 01 67 <code>[date_add year="4" show="yearonly"]</code> returns: 2018 68 65 <code>[date_add year="4" show="yearonly"]</code> returns: 2018 69 66 <code>[date_sub day="1" show="dayonly"].[date_sub month="3" show="monthonly"]</code> returns: 30.07 70 67 <code>[date_add year="0" show="yearonly"]-[date_add month="1" show="monthonly"]-[date_add day="1" show="dayonly"]</code> returns: 2014-11-02 … … 88 85 89 86 90 Make your things with it...87 Make your things... 91 88 92 89 == Changelog == -
date-calculator/trunk/readme.txt
r986755 r986759 14 14 The Date Calculator plugin has two basic functions. 15 15 16 =1.=It returns the current date via the shortcode [date_now] in posts, pages and also in Contact Form 7-forms.16 1. It returns the current date via the shortcode [date_now] in posts, pages and also in Contact Form 7-forms. 17 17 18 =2.=It can calculate a date up [date_add] or down [date_sub] and returns it in posts, pages and also in Contact Form 7 forms.18 2. It can calculate a date up [date_add] or down [date_sub] and returns it in posts, pages and also in Contact Form 7 forms. 19 19 20 20 This plugin enable the shortcode-support within Contact Form 7-forms so that the Date Calculator-shortcodes can also be used there. … … 26 26 27 27 == Frequently Asked Questions == 28 How are the short codes28 How are the shortcodes? 29 29 30 30 The following shortcodes are available: 31 32 31 <code>[date_add day="1" month="1" year="1" show="dayonly/monthonly/yearonly"]</code> 33 32 <code>[date_sub day="1" month="1" year="1" show="dayonly/monthonly/yearonly"]</code> 34 33 35 34 36 <b>Examples:</b> 37 35 Examples: 38 36 39 37 2.1 - Calculating the date down: 40 38 Suppose today is the 01.10.2014 41 39 42 <code>[date_sub day="1"]</code> returns: 30.09.201440 <code>[date_sub day="1"]</code> returns: 30.09.2014 43 41 <code>[date_sub month="3"]</code> returns: 01.07.2014 44 <code>[date_sub year="4"]</code> returns: 01.10.201042 <code>[date_sub year="4"]</code> returns: 01.10.2010 45 43 46 <code>[date_sub day="1" month="3" year="4"]</code> would display: 30.06.201044 <code>[date_sub day="1" month="3" year="4"]</code> returns: 30.06.2010 47 45 48 46 … … 50 48 Suppose today is the 01.10.2014 51 49 52 <code>[date_add day="1"]</code> returns: 02.10.201450 <code>[date_add day="1"]</code> returns: 02.10.2014 53 51 <code>[date_add month="3"]</code> returns: 01.01.2015 54 <code>[date_add year="4"]</code> returns: 01.10.201852 <code>[date_add year="4"]</code> returns: 01.10.2018 55 53 56 54 <code>[date_add day="1" month="3" year="4"]</code> returns: 02.01.2018 … … 60 58 61 59 It is also possible to only impersonate one part of the date, for example, only the day 62 This is specified with the "show-parameter". 60 This is specified with the "show-parameter". 61 Suppose today is the 01.10.2014 63 62 64 65 <code>[date_add day="1" show="dayonly"]</code> returns: 02 63 <code>[date_add day="1" show="dayonly"]</code> returns: 02 66 64 <code>[date_add month="3" show="monthonly"]</code> returns: 01 67 <code>[date_add year="4" show="yearonly"]</code> returns: 2018 68 65 <code>[date_add year="4" show="yearonly"]</code> returns: 2018 69 66 <code>[date_sub day="1" show="dayonly"].[date_sub month="3" show="monthonly"]</code> returns: 30.07 70 67 <code>[date_add year="0" show="yearonly"]-[date_add month="1" show="monthonly"]-[date_add day="1" show="dayonly"]</code> returns: 2014-11-02 … … 88 85 89 86 90 Make your things with it...87 Make your things... 91 88 92 89 == Changelog ==
Note: See TracChangeset
for help on using the changeset viewer.