Quiq::JQuery::Function - Nützliche Funktionen für jQuery
Quiq::Object
Diese Klasse erweitert das jQuery-Objekt um nützliche Funktionen.
$javaScript = $class->formatDate;
Die JavaScript-Funktion formatiert ein JavaScript Datums-Objekt gemäß dem angegebenen Muster:
str = $.formatDate(d,fmt);
Jahreszahl, vierstellig.
Jahreszahl, zweistellig,
Monatsname, voll ausgeschrieben.
Monatsname, die ersten drei Buchstaben.
Monatsnummer, zweistellig.
Monatsnummer.
Wochentag, voll ausgeschrieben.
Wochentag, die ersten drei Buchstaben.
Tag des Monats, zweistellig.
Tag des Monats.
Stunde, zweistellig.
Stunde.
Minute, zweistellig.
Minute
Sekunde, zweistellig.
Sekunde.
Millisekunden, dreistellig.
Die Implementierung basiert auf der Funktion formatDate() im Buch jQuery in Action, Third Edition, S. 352 ff.
1.130
Frank Seitz, http://fseitz.de/
Copyright (C) 2019 Frank Seitz
This code is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Quiq, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Quiq
CPAN shell
perl -MCPAN -e shell install Quiq
For more information on module installation, please visit the detailed CPAN module installation guide.