DateFunctions/it: Difference between revisions
From LimeSurvey Manual
Maren.fritz (talk | contribs) Created page with "Funzioni per il motore ExpressionScript per gestire le variabili di data:" |
Maren.fritz (talk | contribs) Created page with "* localize_date(date[, language = null]): formatta una data in base al formato della data del sondaggio per la lingua specificata. ** La data indicata deve seguire il seguent..." |
||
Line 6: | Line 6: | ||
Funzioni per il motore ExpressionScript per gestire le variabili di data: | Funzioni per il motore ExpressionScript per gestire le variabili di data: | ||
* localize_date(date[, language = null]): | * localize_date(date[, language = null]): formatta una data in base al formato della data del sondaggio per la lingua specificata. | ||
** | ** La data indicata deve seguire il seguente formato "Ymd H:i:s", che è ad esempio quello utilizzato dalla variabile TOKEN:VALIDFROM. | ||
** | ** Per impostazione predefinita, la lingua utilizzata per la localizzazione è la lingua della sessione corrente. Se la lingua corrente non è configurata nel sondaggio, verrà utilizzata la lingua di base del sondaggio. Quando si utilizza nei modelli di posta elettronica, utilizzare la lingua del token come parametro per impostare la lingua prevista. Esempio: TOKEN:LINGUA | ||
This plugin uses the [[ExpressionManagerStart]] plugin, and it creates this function. These 2 functions don't use JavaScript, so they are fully executed by the server. In case the function is used while taking a survey, the function will be executed only when the respondent moves ahead in the survey. | This plugin uses the [[ExpressionManagerStart]] plugin, and it creates this function. These 2 functions don't use JavaScript, so they are fully executed by the server. In case the function is used while taking a survey, the function will be executed only when the respondent moves ahead in the survey. |
Revision as of 07:59, 1 August 2023
Utilizzo
Funzioni per il motore ExpressionScript per gestire le variabili di data:
- localize_date(date[, language = null]): formatta una data in base al formato della data del sondaggio per la lingua specificata.
- La data indicata deve seguire il seguente formato "Ymd H:i:s", che è ad esempio quello utilizzato dalla variabile TOKEN:VALIDFROM.
- Per impostazione predefinita, la lingua utilizzata per la localizzazione è la lingua della sessione corrente. Se la lingua corrente non è configurata nel sondaggio, verrà utilizzata la lingua di base del sondaggio. Quando si utilizza nei modelli di posta elettronica, utilizzare la lingua del token come parametro per impostare la lingua prevista. Esempio: TOKEN:LINGUA
This plugin uses the ExpressionManagerStart plugin, and it creates this function. These 2 functions don't use JavaScript, so they are fully executed by the server. In case the function is used while taking a survey, the function will be executed only when the respondent moves ahead in the survey.
