Changeset 41 for trunk/Packages
- Timestamp:
- Sep 14, 2020, 12:22:36 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/Common/PrefixMultiplier.php
r39 r41 1 1 <?php 2 2 3 function InitPrefixMultipliers() 4 { 5 global $PrefixMultipliers; 3 6 $PrefixMultipliers = array 4 7 ( … … 48 51 'Definition' => array 49 52 ( 50 array('ys', 'yoctosecond', pow(10, -24)),51 array('zs', 'zeptosecond', pow(10, -21)),52 array('as', 'attosecond', pow(10, -18)),53 array('fs', 'femtosecond', pow(10, -15)),54 array('ps', 'pikosecond', pow(10, -12)),55 array('ns', 'nanosecond', pow(10, -9)),56 array('us', 'mikrosecond', pow(10, -6)),57 array('ms', 'milisecond', pow(10, -3)),58 array('s', 'second', 1),59 array( 'minutes', 'minute', 60),60 array( 'hours', 'hour', 60 * 60) ,61 array( 'days', 'day', 24 * 60 * 60),62 array( 'weeks', 'week', 7 * 24 * 60 * 60),63 array( 'months', 'month', 30 * 24 * 60 * 60),64 array( 'years', 'year', 364 * 24 * 60 * 60),65 array( 'desitiletí', 'desetiletí', 10 * 364 * 24 * 60 * 60),66 array( 'staletí', 'staletí', 100 * 364 * 24 * 60 * 60),67 array( 'tisíciletí', 'tisiciletí', 10000 * 364 * 24 * 60 * 60),53 array('ys', T('yoctosecond'), pow(10, -24)), 54 array('zs', T('zeptosecond'), pow(10, -21)), 55 array('as', T('attosecond'), pow(10, -18)), 56 array('fs', T('femtosecond'), pow(10, -15)), 57 array('ps', T('pikosecond'), pow(10, -12)), 58 array('ns', T('nanosecond'), pow(10, -9)), 59 array('us', T('microsecond'), pow(10, -6)), 60 array('ms', T('millisecond'), pow(10, -3)), 61 array('s', T('second'), 1), 62 array(T('minutes'), T('minute'), 60), 63 array(T('hours'), T('hour'), 60 * 60) , 64 array(T('days'), T('day'), 24 * 60 * 60), 65 array(T('weeks'), T('week'), 7 * 24 * 60 * 60), 66 array(T('months'), T('month'), 30 * 24 * 60 * 60), 67 array(T('years'), T('year'), 364 * 24 * 60 * 60), 68 array(T('decades'), T('decade'), 10 * 364 * 24 * 60 * 60), 69 array(T('centuries'), T('century'), 100 * 364 * 24 * 60 * 60), 70 array(T('millennia'), T('millennium'), 10000 * 364 * 24 * 60 * 60), 68 71 ), 69 72 ), 70 73 ); 74 } 71 75 72 76 class PrefixMultiplier … … 117 121 } 118 122 } 123 124 InitPrefixMultipliers();
Note:
See TracChangeset
for help on using the changeset viewer.