Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Speed.php
Go to the documentation of this file.
1 <?php
25 #require_once 'Zend/Measure/Abstract.php';
26 #require_once 'Zend/Locale.php';
27 
38 {
39  const STANDARD = 'METER_PER_SECOND';
40 
41  const BENZ = 'BENZ';
42  const CENTIMETER_PER_DAY = 'CENTIMETER_PER_DAY';
43  const CENTIMETER_PER_HOUR = 'CENTIMETER_PER_HOUR';
44  const CENTIMETER_PER_MINUTE = 'CENTIMETER_PER_MINUTE';
45  const CENTIMETER_PER_SECOND = 'CENTIMETER_PER_SECOND';
46  const DEKAMETER_PER_DAY = 'DEKAMETER_PER_DAY';
47  const DEKAMETER_PER_HOUR = 'DEKAMETER_PER_HOUR';
48  const DEKAMETER_PER_MINUTE = 'DEKAMETER_PER_MINUTE';
49  const DEKAMETER_PER_SECOND = 'DEKAMETER_PER_SECOND';
50  const FOOT_PER_DAY = 'FOOT_PER_DAY';
51  const FOOT_PER_HOUR = 'FOOT_PER_HOUR';
52  const FOOT_PER_MINUTE = 'FOOT_PER_MINUTE';
53  const FOOT_PER_SECOND = 'FOOT_PER_SECOND';
54  const FURLONG_PER_DAY = 'FURLONG_PER_DAY';
55  const FURLONG_PER_FORTNIGHT = 'FURLONG_PER_FORTNIGHT';
56  const FURLONG_PER_HOUR = 'FURLONG_PER_HOUR';
57  const FURLONG_PER_MINUTE = 'FURLONG_PER_MINUTE';
58  const FURLONG_PER_SECOND = 'FURLONG_PER_SECOND';
59  const HECTOMETER_PER_DAY = 'HECTOMETER_PER_DAY';
60  const HECTOMETER_PER_HOUR = 'HECTOMETER_PER_HOUR';
61  const HECTOMETER_PER_MINUTE = 'HECTOMETER_PER_MINUTE';
62  const HECTOMETER_PER_SECOND = 'HECTOMETER_PER_SECOND';
63  const INCH_PER_DAY = 'INCH_PER_DAY';
64  const INCH_PER_HOUR = 'INCH_PER_HOUR';
65  const INCH_PER_MINUTE = 'INCH_PER_MINUTE';
66  const INCH_PER_SECOND = 'INCH_PER_SECOND';
67  const KILOMETER_PER_DAY = 'KILOMETER_PER_DAY';
68  const KILOMETER_PER_HOUR = 'KILOMETER_PER_HOUR';
69  const KILOMETER_PER_MINUTE = 'KILOMETER_PER_MINUTE';
70  const KILOMETER_PER_SECOND = 'KILOMETER_PER_SECOND';
71  const KNOT = 'KNOT';
72  const LEAGUE_PER_DAY = 'LEAGUE_PER_DAY';
73  const LEAGUE_PER_HOUR = 'LEAGUE_PER_HOUR';
74  const LEAGUE_PER_MINUTE = 'LEAGUE_PER_MINUTE';
75  const LEAGUE_PER_SECOND = 'LEAGUE_PER_SECOND';
76  const MACH = 'MACH';
77  const MEGAMETER_PER_DAY = 'MEGAMETER_PER_DAY';
78  const MEGAMETER_PER_HOUR = 'MEGAMETER_PER_HOUR';
79  const MEGAMETER_PER_MINUTE = 'MEGAMETER_PER_MINUTE';
80  const MEGAMETER_PER_SECOND = 'MEGAMETER_PER_SECOND';
81  const METER_PER_DAY = 'METER_PER_DAY';
82  const METER_PER_HOUR = 'METER_PER_HOUR';
83  const METER_PER_MINUTE = 'METER_PER_MINUTE';
84  const METER_PER_SECOND = 'METER_PER_SECOND';
85  const MILE_PER_DAY = 'MILE_PER_DAY';
86  const MILE_PER_HOUR = 'MILE_PER_HOUR';
87  const MILE_PER_MINUTE = 'MILE_PER_MINUTE';
88  const MILE_PER_SECOND = 'MILE_PER_SECOND';
89  const MILLIMETER_PER_DAY = 'MILLIMETER_PER_DAY';
90  const MILLIMETER_PER_HOUR = 'MILLIMETER_PER_HOUR';
91  const MILLIMETER_PER_MINUTE = 'MILLIMETER_PER_MINUTE';
92  const MILLIMETER_PER_SECOND = 'MILLIMETER_PER_SECOND';
93  const MILLIMETER_PER_MICROSECOND = 'MILLIMETER_PER_MICROSECOND';
94  const MILLIMETER_PER_100_MICROSECOND = 'MILLIMETER_PER_100_MICROSECOND';
95  const NAUTIC_MILE_PER_DAY = 'NAUTIC_MILE_PER_DAY';
96  const NAUTIC_MILE_PER_HOUR = 'NAUTIC_MILE_PER_HOUR';
97  const NAUTIC_MILE_PER_MINUTE = 'NAUTIC_MILE_PER_MINUTE';
98  const NAUTIC_MILE_PER_SECOND = 'NAUTIC_MILE_PER_SECOND';
99  const LIGHTSPEED_AIR = 'LIGHTSPEED_AIR';
100  const LIGHTSPEED_GLASS = 'LIGHTSPEED_GLASS';
101  const LIGHTSPEED_ICE = 'LIGHTSPEED_ICE';
102  const LIGHTSPEED_VACUUM = 'LIGHTSPEED_VACUUM';
103  const LIGHTSPEED_WATER = 'LIGHTSPEED_WATER';
104  const SOUNDSPEED_AIR = 'SOUNDSPEED_AIT';
105  const SOUNDSPEED_METAL = 'SOUNDSPEED_METAL';
106  const SOUNDSPEED_WATER = 'SOUNDSPEED_WATER';
107  const YARD_PER_DAY = 'YARD_PER_DAY';
108  const YARD_PER_HOUR = 'YARD_PER_HOUR';
109  const YARD_PER_MINUTE = 'YARD_PER_MINUTE';
110  const YARD_PER_SECOND = 'YARD_PER_SECOND';
111 
117  protected $_units = array(
118  'BENZ' => array('1', 'Bz'),
119  'CENTIMETER_PER_DAY' => array(array('' => '0.01', '/' => '86400'), 'cm/day'),
120  'CENTIMETER_PER_HOUR' => array(array('' => '0.01', '/' => '3600'), 'cm/h'),
121  'CENTIMETER_PER_MINUTE' => array(array('' => '0.01', '/' => '60'), 'cm/m'),
122  'CENTIMETER_PER_SECOND' => array('0.01', 'cd/s'),
123  'DEKAMETER_PER_DAY' => array(array('' => '10', '/' => '86400'), 'dam/day'),
124  'DEKAMETER_PER_HOUR' => array(array('' => '10', '/' => '3600'), 'dam/h'),
125  'DEKAMETER_PER_MINUTE' => array(array('' => '10', '/' => '60'), 'dam/m'),
126  'DEKAMETER_PER_SECOND' => array('10', 'dam/s'),
127  'FOOT_PER_DAY' => array(array('' => '0.3048', '/' => '86400'), 'ft/day'),
128  'FOOT_PER_HOUR' => array(array('' => '0.3048', '/' => '3600'), 'ft/h'),
129  'FOOT_PER_MINUTE' => array(array('' => '0.3048', '/' => '60'), 'ft/m'),
130  'FOOT_PER_SECOND' => array('0.3048', 'ft/s'),
131  'FURLONG_PER_DAY' => array(array('' => '201.1684', '/' => '86400'), 'fur/day'),
132  'FURLONG_PER_FORTNIGHT' => array(array('' => '201.1684', '/' => '1209600'), 'fur/fortnight'),
133  'FURLONG_PER_HOUR' => array(array('' => '201.1684', '/' => '3600'), 'fur/h'),
134  'FURLONG_PER_MINUTE' => array(array('' => '201.1684', '/' => '60'), 'fur/m'),
135  'FURLONG_PER_SECOND' => array('201.1684', 'fur/s'),
136  'HECTOMETER_PER_DAY' => array(array('' => '100', '/' => '86400'), 'hm/day'),
137  'HECTOMETER_PER_HOUR' => array(array('' => '100', '/' => '3600'), 'hm/h'),
138  'HECTOMETER_PER_MINUTE' => array(array('' => '100', '/' => '60'), 'hm/m'),
139  'HECTOMETER_PER_SECOND' => array('100', 'hm/s'),
140  'INCH_PER_DAY' => array(array('' => '0.0254', '/' => '86400'), 'in/day'),
141  'INCH_PER_HOUR' => array(array('' => '0.0254', '/' => '3600'), 'in/h'),
142  'INCH_PER_MINUTE' => array(array('' => '0.0254', '/' => '60'), 'in/m'),
143  'INCH_PER_SECOND' => array('0.0254', 'in/s'),
144  'KILOMETER_PER_DAY' => array(array('' => '1000', '/' => '86400'), 'km/day'),
145  'KILOMETER_PER_HOUR' => array(array('' => '1000', '/' => '3600'), 'km/h'),
146  'KILOMETER_PER_MINUTE' => array(array('' => '1000', '/' => '60'), 'km/m'),
147  'KILOMETER_PER_SECOND' => array('1000', 'km/s'),
148  'KNOT' => array(array('' => '1852', '/' => '3600'), 'kn'),
149  'LEAGUE_PER_DAY' => array(array('' => '4828.0417', '/' => '86400'), 'league/day'),
150  'LEAGUE_PER_HOUR' => array(array('' => '4828.0417', '/' => '3600'), 'league/h'),
151  'LEAGUE_PER_MINUTE' => array(array('' => '4828.0417', '/' => '60'), 'league/m'),
152  'LEAGUE_PER_SECOND' => array('4828.0417', 'league/s'),
153  'MACH' => array('340.29', 'M'),
154  'MEGAMETER_PER_DAY' => array(array('' => '1000000', '/' => '86400'), 'Mm/day'),
155  'MEGAMETER_PER_HOUR' => array(array('' => '1000000', '/' => '3600'), 'Mm/h'),
156  'MEGAMETER_PER_MINUTE' => array(array('' => '1000000', '/' => '60'), 'Mm/m'),
157  'MEGAMETER_PER_SECOND' => array('1000000', 'Mm/s'),
158  'METER_PER_DAY' => array(array('' => '1', '/' => '86400'), 'm/day'),
159  'METER_PER_HOUR' => array(array('' => '1', '/' => '3600'), 'm/h'),
160  'METER_PER_MINUTE' => array(array('' => '1', '/' => '60'), 'm/m'),
161  'METER_PER_SECOND' => array('1', 'm/s'),
162  'MILE_PER_DAY' => array(array('' => '1609.344', '/' => '86400'), 'mi/day'),
163  'MILE_PER_HOUR' => array(array('' => '1609.344', '/' => '3600'), 'mi/h'),
164  'MILE_PER_MINUTE' => array(array('' => '1609.344', '/' => '60'), 'mi/m'),
165  'MILE_PER_SECOND' => array('1609.344', 'mi/s'),
166  'MILLIMETER_PER_DAY' => array(array('' => '0.001', '/' => '86400'), 'mm/day'),
167  'MILLIMETER_PER_HOUR' => array(array('' => '0.001', '/' => '3600'), 'mm/h'),
168  'MILLIMETER_PER_MINUTE' => array(array('' => '0.001', '/' => '60'), 'mm/m'),
169  'MILLIMETER_PER_SECOND' => array('0.001', 'mm/s'),
170  'MILLIMETER_PER_MICROSECOND' => array('1000', 'mm/µs'),
171  'MILLIMETER_PER_100_MICROSECOND' => array('10', 'mm/100µs'),
172  'NAUTIC_MILE_PER_DAY' => array(array('' => '1852', '/' => '86400'), 'nmi/day'),
173  'NAUTIC_MILE_PER_HOUR' => array(array('' => '1852', '/' => '3600'), 'nmi/h'),
174  'NAUTIC_MILE_PER_MINUTE' => array(array('' => '1852', '/' => '60'), 'nmi/m'),
175  'NAUTIC_MILE_PER_SECOND' => array('1852', 'nmi/s'),
176  'LIGHTSPEED_AIR' => array('299702547', 'speed of light (air)'),
177  'LIGHTSPEED_GLASS' => array('199861638', 'speed of light (glass)'),
178  'LIGHTSPEED_ICE' => array('228849204', 'speed of light (ice)'),
179  'LIGHTSPEED_VACUUM' => array('299792458', 'speed of light (vacuum)'),
180  'LIGHTSPEED_WATER' => array('225407863', 'speed of light (water)'),
181  'SOUNDSPEED_AIT' => array('340.29', 'speed of sound (air)'),
182  'SOUNDSPEED_METAL' => array('5000', 'speed of sound (metal)'),
183  'SOUNDSPEED_WATER' => array('1500', 'speed of sound (water)'),
184  'YARD_PER_DAY' => array(array('' => '0.9144', '/' => '86400'), 'yd/day'),
185  'YARD_PER_HOUR' => array(array('' => '0.9144', '/' => '3600'), 'yd/h'),
186  'YARD_PER_MINUTE' => array(array('' => '0.9144', '/' => '60'), 'yd/m'),
187  'YARD_PER_SECOND' => array('0.9144', 'yd/s'),
188  'STANDARD' => 'METER_PER_SECOND'
189  );
190 }
const KILOMETER_PER_DAY
Definition: Speed.php:67
const SOUNDSPEED_AIR
Definition: Speed.php:104
const FURLONG_PER_FORTNIGHT
Definition: Speed.php:55
const METER_PER_MINUTE
Definition: Speed.php:83
const FURLONG_PER_MINUTE
Definition: Speed.php:57
const FOOT_PER_HOUR
Definition: Speed.php:51
const DEKAMETER_PER_SECOND
Definition: Speed.php:49
const LEAGUE_PER_SECOND
Definition: Speed.php:75
const HECTOMETER_PER_MINUTE
Definition: Speed.php:61
const SOUNDSPEED_METAL
Definition: Speed.php:105
const KILOMETER_PER_HOUR
Definition: Speed.php:68
const HECTOMETER_PER_HOUR
Definition: Speed.php:60
const LEAGUE_PER_MINUTE
Definition: Speed.php:74
const CENTIMETER_PER_DAY
Definition: Speed.php:42
const CENTIMETER_PER_MINUTE
Definition: Speed.php:44
const YARD_PER_MINUTE
Definition: Speed.php:109
const MILLIMETER_PER_DAY
Definition: Speed.php:89
const MILE_PER_DAY
Definition: Speed.php:85
const YARD_PER_SECOND
Definition: Speed.php:110
const FURLONG_PER_DAY
Definition: Speed.php:54
const INCH_PER_DAY
Definition: Speed.php:63
const LIGHTSPEED_ICE
Definition: Speed.php:101
const INCH_PER_SECOND
Definition: Speed.php:66
const DEKAMETER_PER_HOUR
Definition: Speed.php:47
const HECTOMETER_PER_SECOND
Definition: Speed.php:62
const MILLIMETER_PER_HOUR
Definition: Speed.php:90
const MEGAMETER_PER_SECOND
Definition: Speed.php:80
const MILE_PER_SECOND
Definition: Speed.php:88
const NAUTIC_MILE_PER_DAY
Definition: Speed.php:95
const MEGAMETER_PER_DAY
Definition: Speed.php:77
const METER_PER_DAY
Definition: Speed.php:81
const CENTIMETER_PER_HOUR
Definition: Speed.php:43
const MEGAMETER_PER_MINUTE
Definition: Speed.php:79
const KILOMETER_PER_SECOND
Definition: Speed.php:70
const LIGHTSPEED_GLASS
Definition: Speed.php:100
const MEGAMETER_PER_HOUR
Definition: Speed.php:78
const SOUNDSPEED_WATER
Definition: Speed.php:106
const MILLIMETER_PER_MICROSECOND
Definition: Speed.php:93
const HECTOMETER_PER_DAY
Definition: Speed.php:59
const DEKAMETER_PER_DAY
Definition: Speed.php:46
const FOOT_PER_DAY
Definition: Speed.php:50
const MILE_PER_HOUR
Definition: Speed.php:86
const METER_PER_SECOND
Definition: Speed.php:84
const MILLIMETER_PER_100_MICROSECOND
Definition: Speed.php:94
const CENTIMETER_PER_SECOND
Definition: Speed.php:45
const INCH_PER_HOUR
Definition: Speed.php:64
const FOOT_PER_SECOND
Definition: Speed.php:53
const STANDARD
Definition: Speed.php:39
const MILLIMETER_PER_MINUTE
Definition: Speed.php:91
const NAUTIC_MILE_PER_HOUR
Definition: Speed.php:96
const NAUTIC_MILE_PER_MINUTE
Definition: Speed.php:97
const MILE_PER_MINUTE
Definition: Speed.php:87
const FURLONG_PER_HOUR
Definition: Speed.php:56
const MILLIMETER_PER_SECOND
Definition: Speed.php:92
const FURLONG_PER_SECOND
Definition: Speed.php:58
const FOOT_PER_MINUTE
Definition: Speed.php:52
const KILOMETER_PER_MINUTE
Definition: Speed.php:69
const LEAGUE_PER_DAY
Definition: Speed.php:72
const LIGHTSPEED_WATER
Definition: Speed.php:103
const NAUTIC_MILE_PER_SECOND
Definition: Speed.php:98
const YARD_PER_DAY
Definition: Speed.php:107
const YARD_PER_HOUR
Definition: Speed.php:108
const INCH_PER_MINUTE
Definition: Speed.php:65
const LEAGUE_PER_HOUR
Definition: Speed.php:73
const LIGHTSPEED_AIR
Definition: Speed.php:99
const DEKAMETER_PER_MINUTE
Definition: Speed.php:48
const METER_PER_HOUR
Definition: Speed.php:82
const LIGHTSPEED_VACUUM
Definition: Speed.php:102