Home > @infiniteobjects/data-types > ShippingTimes
Shipping Time Utils class
Signature:
export declare class ShippingTimes
| Method | Modifiers | Description |
|---|---|---|
| getCurrentUTCTime() | static |
Gets the current time in UTC |
| getLaunchDatePassed(launchDate) | static |
Has the launch date passed? |
| getProcessingTime(sku, processingTimes) | static |
Gets the processing time derived by variant’s Distinct Unit (e.g. 5-7 days) |
| getShippingDisplayTime(sku, processingTimes, launchDate) | static |
Returns the launch date as a string if it hasn’t passed yet, otherwise returns the processing time string |
| processingTimeFromDistinctUnit(processingTimes, unit) | static |
Get the processing time by distinct unit |
| skuToDistinctUnit(skuString) | static |
Parse a distinct unit from a SKU |