<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.limesurvey.org/index.php?action=history&amp;feed=atom&amp;title=Translations%3AExpression_Manager_examples%2F101%2Fzh</id>
	<title>Translations:Expression Manager examples/101/zh - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.limesurvey.org/index.php?action=history&amp;feed=atom&amp;title=Translations%3AExpression_Manager_examples%2F101%2Fzh"/>
	<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Translations:Expression_Manager_examples/101/zh&amp;action=history"/>
	<updated>2026-08-11T21:18:29Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Translations:Expression_Manager_examples/101/zh&amp;diff=130991&amp;oldid=prev</id>
		<title>Elan365 at 06:32, 21 November 2018</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Translations:Expression_Manager_examples/101/zh&amp;diff=130991&amp;oldid=prev"/>
		<updated>2018-11-21T06:32:26Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 08:32, 21 November 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| class=&amp;quot;wikitable&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| class=&amp;quot;wikitable&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|目的||计算两个日期之间的差异&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|目的||计算两个日期之间的差异&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/del&gt;-  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|类型||相关性/方程式问题类型/验证&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|类型||相关性/方程式问题类型/验证&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/del&gt;-  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|示例||问题一（日期/时间，代码：DOB）：你的出生日期是什么时候？ &amp;lt;br /&amp;gt;问题二（日期/时间，代码：datetoday）：今天的日期是什么时候？ &amp;lt;br /&amp;gt;问题三（样板）：你&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;是XXXX&lt;/del&gt;天。 &amp;lt;br /&amp;gt;要做的事情：计算并显示问题1中给出的日期和问题2之间的天数。&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|示例||问题一（日期/时间，代码：DOB）：你的出生日期是什么时候？ &amp;lt;br /&amp;gt;问题二（日期/时间，代码：datetoday）：今天的日期是什么时候？ &amp;lt;br /&amp;gt;问题三（样板）：你&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;已经出生XXXX&lt;/ins&gt;天。 &amp;lt;br /&amp;gt;要做的事情：计算并显示问题1中给出的日期和问题2之间的天数。&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/del&gt;-  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|表达式|| {&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;（strtotime（datetoday）&lt;/del&gt;-strtotime&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;（DOB））&lt;/del&gt;/ 60/60 / 24} &amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|表达式||{&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(strtotime(datetoday)&lt;/ins&gt;-strtotime&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(DOB))&lt;/ins&gt;/60/60/24}&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| - &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|说明|| strtotime计算1970年1月1日到给定日期之间的秒数。上面的表达式计算两个给定日期之间的秒数。术语“/ 60/60/24”只计算从秒数开始的天数。 &amp;lt;br /&amp;gt;您也可以使用strtotime&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;（&lt;/del&gt;&#039;now&#039;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;）&lt;/del&gt;或简单的time&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;（）&lt;/del&gt;来直接返回从1970年1月到现在（即调查的时间）的秒数，而不是要求“datetoday”。因此，你可以用&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;等&lt;/del&gt;式{&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;（time（） &lt;/del&gt;- &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/del&gt;strtotime&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;（DOB））&lt;/del&gt;/ 60/60/24/365.25}快速计算一个人年龄。在任何一种情况下，输入日期至关重要以适当的格式，否则strtotime&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;（）&lt;/del&gt;函数将无法正常工作。&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|说明||strtotime计算1970年1月1日到给定日期之间的秒数。上面的表达式计算两个给定日期之间的秒数。术语“/60/60/24”只计算从秒数开始的天数。 &amp;lt;br /&amp;gt;您也可以使用strtotime&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(&lt;/ins&gt;&#039;now&#039;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;)&lt;/ins&gt;或简单的time&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;()&lt;/ins&gt;来直接返回从1970年1月到现在（即调查的时间）的秒数，而不是要求“datetoday”。因此，你可以用&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;表达&lt;/ins&gt;式{&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(time() &lt;/ins&gt;- strtotime&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(DOB)) &lt;/ins&gt;/ 60 / 60 / 24 / 365.25}快速计算一个人年龄。在任何一种情况下，输入日期至关重要以适当的格式，否则strtotime&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;()&lt;/ins&gt;函数将无法正常工作。&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/del&gt;-&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|步骤||创建两个日期问题（出生日期和今天的日期）和样板问题。 &amp;lt;br /&amp;gt;在样板问题插页的问题文本中：“&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;在&lt;/del&gt;{datetoday}&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;上&lt;/del&gt;你&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;是&lt;/del&gt;{&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;（strtotime（今天）&lt;/del&gt;-strtotime&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;（dob））&lt;/del&gt;/ 60/60/24}天&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;数&lt;/del&gt;。” &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;请注意：函数strtotime可以使用多种但不是所有日期格式。如果遇到问题，请将调查的日期格式设置为mm / dd / yyyy或yyyy-mm-dd或dd.mm.yyyy“&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|步骤||创建两个日期问题（出生日期和今天的日期）和样板问题。 &amp;lt;br /&amp;gt;在样板问题插页的问题文本中：“&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;到&lt;/ins&gt;{datetoday}&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;为止，&lt;/ins&gt;你&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;已经出生 &lt;/ins&gt;{&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(strtotime(today)&lt;/ins&gt;-strtotime&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(dob))&lt;/ins&gt;/60/60/24}天&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;了&lt;/ins&gt;。” &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;请注意：函数strtotime可以使用多种但不是所有日期格式。如果遇到问题，请将调查的日期格式设置为mm/dd/yyyy或yyyy-mm-dd或dd.mm.yyyy“&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/del&gt;-  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|示例文件||[[Media:TestSurvey_Working_with_Dates.zip|Date_difference.zip]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|示例文件||[[Media:TestSurvey_Working_with_Dates.zip|Date_difference.zip]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|colspan=&amp;quot;2&amp;quot; align=&amp;quot;center&amp;quot;|[[File:Date_difference_example.png]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|colspan=&amp;quot;2&amp;quot; align=&amp;quot;center&amp;quot;|[[File:Date_difference_example.png]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key c1manual-lsmw_:diff:1.41:old-130989:rev-130991:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Elan365</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Translations:Expression_Manager_examples/101/zh&amp;diff=130989&amp;oldid=prev</id>
		<title>Elan365 at 06:27, 21 November 2018</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Translations:Expression_Manager_examples/101/zh&amp;diff=130989&amp;oldid=prev"/>
		<updated>2018-11-21T06:27:55Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 08:27, 21 November 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l6&quot;&gt;Line 6:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 6:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|示例||问题一（日期/时间，代码：DOB）：你的出生日期是什么时候？ &amp;lt;br /&amp;gt;问题二（日期/时间，代码：datetoday）：今天的日期是什么时候？ &amp;lt;br /&amp;gt;问题三（样板）：你是XXXX天。 &amp;lt;br /&amp;gt;要做的事情：计算并显示问题1中给出的日期和问题2之间的天数。&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|示例||问题一（日期/时间，代码：DOB）：你的出生日期是什么时候？ &amp;lt;br /&amp;gt;问题二（日期/时间，代码：datetoday）：今天的日期是什么时候？ &amp;lt;br /&amp;gt;问题三（样板）：你是XXXX天。 &amp;lt;br /&amp;gt;要做的事情：计算并显示问题1中给出的日期和问题2之间的天数。&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|  -  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|  -  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|表达式|| {（strtotime（datetoday）-strtotime（DOB））/ 60/60 / 24} &amp;lt;br&amp;gt; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;！N &lt;/del&gt;|&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;！ &lt;/del&gt;-  &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;N &lt;/del&gt;|&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;！&lt;/del&gt;说明|| strtotime计算1970年1月1日到给定日期之间的秒数。上面的表达式计算两个给定日期之间的秒数。术语“/ 60/60/24”只计算从秒数开始的天数。 &amp;lt;br /&amp;gt;您也可以使用strtotime（&#039;now&#039;）或简单的time（）来直接返回从1970年1月到现在（即调查的时间）的秒数，而不是要求“datetoday”。因此，你可以用等式{（time（） -  strtotime（DOB））/ 60/60/24/365.25}快速计算一个人年龄。在任何一种情况下，输入日期至关重要以适当的格式，否则strtotime（）函数将无法正常工作。 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;！N！&lt;/del&gt;|  - &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;！N！&lt;/del&gt;|步骤||创建两个日期问题（出生日期和今天的日期）和样板问题。 &amp;lt;br /&amp;gt;在样板问题插页的问题文本中：“在{datetoday}上你是{（strtotime（今天）-strtotime（dob））/ 60/60/24}天数。” &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;请注意：函数strtotime可以使用多种但不是所有日期格式。如果遇到问题，请将调查的日期格式设置为mm / dd / yyyy或yyyy-mm-dd或dd.mm.yyyy“&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|表达式|| {（strtotime（datetoday）-strtotime（DOB））/ 60/60 / 24} &amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| -   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|说明|| strtotime计算1970年1月1日到给定日期之间的秒数。上面的表达式计算两个给定日期之间的秒数。术语“/ 60/60/24”只计算从秒数开始的天数。 &amp;lt;br /&amp;gt;您也可以使用strtotime（&#039;now&#039;）或简单的time（）来直接返回从1970年1月到现在（即调查的时间）的秒数，而不是要求“datetoday”。因此，你可以用等式{（time（） -  strtotime（DOB））/ 60/60/24/365.25}快速计算一个人年龄。在任何一种情况下，输入日期至关重要以适当的格式，否则strtotime（）函数将无法正常工作。&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|  -&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|步骤||创建两个日期问题（出生日期和今天的日期）和样板问题。 &amp;lt;br /&amp;gt;在样板问题插页的问题文本中：“在{datetoday}上你是{（strtotime（今天）-strtotime（dob））/ 60/60/24}天数。” &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;请注意：函数strtotime可以使用多种但不是所有日期格式。如果遇到问题，请将调查的日期格式设置为mm / dd / yyyy或yyyy-mm-dd或dd.mm.yyyy“&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|  -  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|  -  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|示例文件||[[Media:TestSurvey_Working_with_Dates.zip|Date_difference.zip]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|示例文件||[[Media:TestSurvey_Working_with_Dates.zip|Date_difference.zip]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key c1manual-lsmw_:diff:1.41:old-130979:rev-130989:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Elan365</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Translations:Expression_Manager_examples/101/zh&amp;diff=130979&amp;oldid=prev</id>
		<title>Elan365: Created page with &quot;{| class=&quot;wikitable&quot; |目的||计算两个日期之间的差异 |  -  |类型||相关性/方程式问题类型/验证 |  -  |示例||问题一（日期/时间，代码：DOB...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Translations:Expression_Manager_examples/101/zh&amp;diff=130979&amp;oldid=prev"/>
		<updated>2018-11-21T06:25:33Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{| class=&amp;quot;wikitable&amp;quot; |目的||计算两个日期之间的差异 |  -  |类型||相关性/方程式问题类型/验证 |  -  |示例||问题一（日期/时间，代码：DOB...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|目的||计算两个日期之间的差异&lt;br /&gt;
|  - &lt;br /&gt;
|类型||相关性/方程式问题类型/验证&lt;br /&gt;
|  - &lt;br /&gt;
|示例||问题一（日期/时间，代码：DOB）：你的出生日期是什么时候？ &amp;lt;br /&amp;gt;问题二（日期/时间，代码：datetoday）：今天的日期是什么时候？ &amp;lt;br /&amp;gt;问题三（样板）：你是XXXX天。 &amp;lt;br /&amp;gt;要做的事情：计算并显示问题1中给出的日期和问题2之间的天数。&lt;br /&gt;
|  - &lt;br /&gt;
|表达式|| {（strtotime（datetoday）-strtotime（DOB））/ 60/60 / 24} &amp;lt;br&amp;gt; ！N |！ -  N |！说明|| strtotime计算1970年1月1日到给定日期之间的秒数。上面的表达式计算两个给定日期之间的秒数。术语“/ 60/60/24”只计算从秒数开始的天数。 &amp;lt;br /&amp;gt;您也可以使用strtotime（&amp;#039;now&amp;#039;）或简单的time（）来直接返回从1970年1月到现在（即调查的时间）的秒数，而不是要求“datetoday”。因此，你可以用等式{（time（） -  strtotime（DOB））/ 60/60/24/365.25}快速计算一个人年龄。在任何一种情况下，输入日期至关重要以适当的格式，否则strtotime（）函数将无法正常工作。 ！N！|  - ！N！|步骤||创建两个日期问题（出生日期和今天的日期）和样板问题。 &amp;lt;br /&amp;gt;在样板问题插页的问题文本中：“在{datetoday}上你是{（strtotime（今天）-strtotime（dob））/ 60/60/24}天数。” &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;请注意：函数strtotime可以使用多种但不是所有日期格式。如果遇到问题，请将调查的日期格式设置为mm / dd / yyyy或yyyy-mm-dd或dd.mm.yyyy“&lt;br /&gt;
|  - &lt;br /&gt;
|示例文件||[[Media:TestSurvey_Working_with_Dates.zip|Date_difference.zip]]&lt;br /&gt;
|-&lt;br /&gt;
|colspan=&amp;quot;2&amp;quot; align=&amp;quot;center&amp;quot;|[[File:Date_difference_example.png]]&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Elan365</name></author>
	</entry>
</feed>