Carsten Brandt
3f75728083
refactored size format
10 years ago
Carsten Brandt
916d2c182d
ensure some BC
...
ensure some features that were recently added to formatter keep working after refactoring
10 years ago
Carsten Brandt
9418c9d236
unit tests and some locale depended fixes
10 years ago
Carsten Brandt
8d397e7f0e
finished currency formatter
10 years ago
Carsten Brandt
f8f0ff5445
moved formatter to i18n namespace
10 years ago
Carsten Brandt
065db64db3
finsihed formatter implementation
...
neads cleanup
10 years ago
Carsten Brandt
2a15ae12e6
refactored number formatting
10 years ago
Carsten Brandt
a4e86c02de
date formatter iteration
10 years ago
Carsten Brandt
7f1f759472
small doc adjustments
10 years ago
RichWeber
92cd13a913
pull origin
10 years ago
Carsten Brandt
3a1e0f3a5c
property codestyle framework
10 years ago
Kai Mindermann
46b553f012
fixes formatter doing one division too much, fixes #4427
10 years ago
Kai Mindermann
f3520187d6
formatter: adds unit tests for base 1000, fixes #4412
10 years ago
Carsten Brandt
d7b4ea859b
refactored date formatting functions
...
- removed unformat methods, they do not belong here
- removed db format, which is also not purpose of this class
- refactored the whole set of methods to be simpler and better
maintainable
More unit tests needed.
10 years ago
Erik_r
a8ad3b83bd
#2359 Bugfix in normalizeDatetimeValue after regression test
10 years ago
Erik_r
0a10e92f92
#2359 one test failed in Travis because standard medium date format is different in Travis then on my locale PC.
10 years ago
Erik_r
299d991a2e
#2359 testcases adapted and compatibility to old tests improved
10 years ago
Erik_r
d80d9dcd1d
remove comment lines in asRelativeTime
10 years ago
Erik_r
4dbf1fe7b2
Typo in function call #2359
10 years ago
Erik_r
cf960e891f
Namespace corrected #2359
10 years ago
Erik_r
0995a740c8
Refactored formatter class #2359 which works with or without intl extension. Use PHP format patterns alsow with intl. Class is compatible with previous version.
10 years ago
Kartik Visweswaran
7f788e7427
Fix #3756 : Convert values to float for number formatting
...
Convert string values to floating point, so that `number_format` method can properly format values.
10 years ago
Philippe Gaultier
20e96cca05
Fix DateTime cast
11 years ago
Qiang Xue
7d8dfe52cd
Fixed test break.
11 years ago
Kartik Visweswaran
b1a26ff336
Fix the Y2K38 bug
...
Adds support for timestamps beyond year 2038.
11 years ago
marsuboss
db244a61b2
Fix typo
11 years ago
Carsten Brandt
76d8e2b5b3
code style, fixes #3140
11 years ago
Thiago Talma
c1445871f4
Correction of many errors code inspection.
...
Adjustments code according to the standards.
Adding missing PHPDoc comment.
11 years ago
Qiang Xue
3616d1f0d1
Fixes #2816 : Changed default date and time format of `yii\base\Formatter` to `Y-m-d` and `H:i:s`
11 years ago
Alexander Makarov
6054ede16a
Fixed phpdoc, removed unit tests for Formatter asRelativeTime that were relative to current time since it was impossible to specify correct expected values
11 years ago
Carsten Brandt
a9e37b906c
fixed typo
11 years ago
Carsten Brandt
bf3c75147d
reverted breaking PHPdoc codestyle changes
...
issue #2852
11 years ago
David Renty
ed70735b22
Changelog and doc
11 years ago
David Renty
91e4ad5978
PSR-2 compliance
11 years ago
SonicGD
b5f8a4dc22
Reformat code te be PSR-2 compatible
11 years ago
David Renty
0fa5230cd0
Removed debug code, changed doc
11 years ago
David Renty
cb3eb9c6d8
Added support for inverted intervals (future time) and unit tests
11 years ago
ivokund
f84de98efb
Fixes #2735
...
Adds DateTimeInterface support for Formatter
11 years ago
David Renty
b5cd0a6f0c
asElapsedTime can now take a DateInterval string as a parameter
11 years ago
David Renty
b7cf618348
asElapsedTime style improvements
11 years ago
David Renty
f7871e2458
asElapsedTime can now take DateInterval as parameter
11 years ago
David Renty
a74fa20d2d
Typo
11 years ago
David Renty
ced45c5450
Call Yii::t everytime instead of passing a template variable
11 years ago
David Renty
fd7ed28221
Typo in asElapsedTime description
11 years ago
David Renty
e77ffe2c4a
Added asElapsedTime function
11 years ago
AlexGx
c047fbe0df
fix code style `No space found after comma in function call`
11 years ago
Carsten Brandt
33d6acba25
Improved behavior support, fixes #2550
...
call hasMethod() instead of using method_exists
11 years ago
Alexander Makarov
03b2fc3e58
Adjusted code formatting
11 years ago
Vincent
84a48ac93e
updated changelog
11 years ago
Vincent
9f6cc54154
updated code according to code style and removed unused property
11 years ago