- Preparing search index...
- The search index is not available
sdk-v2
- asMs(duration: `${number} second` | `${number} seconds` | `${number} minute` | `${number} minutes` | `${number} hour` | `${number} hours` | `${number} day` | `${number} days` | `${number} week` | `${number} weeks` | `${number} month` | `${number} months` | `${number} year` | `${number} years` | `-${number} second` | `-${number} seconds` | `-${number} minute` | `-${number} minutes` | `-${number} hour` | `-${number} hours` | `-${number} day` | `-${number} days` | `-${number} week` | `-${number} weeks` | `-${number} month` | `-${number} months` | `-${number} year` | `-${number} years`): number
-
Parameters
-
duration: `${number} second` | `${number} seconds` | `${number} minute` | `${number} minutes` | `${number} hour` | `${number} hours` | `${number} day` | `${number} days` | `${number} week` | `${number} weeks` | `${number} month` | `${number} months` | `${number} year` | `${number} years` | `-${number} second` | `-${number} seconds` | `-${number} minute` | `-${number} minutes` | `-${number} hour` | `-${number} hours` | `-${number} day` | `-${number} days` | `-${number} week` | `-${number} weeks` | `-${number} month` | `-${number} months` | `-${number} year` | `-${number} years`
Returns number
Get duration in milliseconds.
Returns
number