Duration Properties, ISO 8601 Format, Shipping Times, and Mass Values
How Schema.org Duration and Mass work, which properties use them, and how to mark up shipping handling and transit times for merchant listings.
This page summarises Schema.org documentation on time and quantity markup, together with Google Search Central guidance where merchant shipping uses the same vocabulary. If you are adding cookTime, deliveryTime, or nutrition fields to JSON-LD, the vocabulary separates elapsed time (Duration, usually ISO 8601), business-day shipping windows (ServicePeriod and QuantitativeValue), and mass (Mass).
Duration type: what “length of time” means in structured data
Section titled “Duration type: what “length of time” means in structured data”The Duration type is a Quantity whose values use ISO 8601 duration format.
Quantity: Duration (use ISO 8601 duration format).
— Schema.org, Duration
In plain terms, you express a span of time with strings such as PT30M (30 minutes), PT1H30M (1 hour 30 minutes), or P1Y (one year). Properties that expect a Duration should not use free-form text like “about half an hour” unless the property also allows Text (for example estimatedFlightDuration).
observationPeriod documents the same pattern explicitly: the format follows P[0-9]*[Y|M|D|h|m|s] (for example P1Y, P3M, P3h).
duration property: runtime and media length
Section titled “duration property: runtime and media length”The duration property is among the most widely used duration fields. Schema.org defines it as:
The duration of the item (movie, audio recording, event, etc.) in ISO 8601 duration format.
— Schema.org, duration
Expected value types are Duration or QuantitativeValue. Parent types include Movie, Episode, Event, MusicRecording, and others listed on the Duration type page.
Recipe and HowTo time: cookTime, prepTime, performTime, totalTime
Section titled “Recipe and HowTo time: cookTime, prepTime, performTime, totalTime”Recipe and instruction markup split preparation, active work, and total time so rich results can show accurate labels.
| Property | Meaning | Parent types |
|---|---|---|
prepTime |
Time to prepare supplies | HowTo, HowToDirection |
performTime |
Time to perform steps (excluding prep) | Same |
totalTime |
Prep plus perform | Same |
cookTime |
Time to actually cook the dish | Recipe |
cookTime is defined as:
The time it takes to actually cook the dish, in ISO 8601 duration format.
— Schema.org, cookTime
performTime and prepTime use the same ISO 8601 requirement. totalTime should equal the combined intent of prep and perform; if you only publish one field, totalTime is what many consumers treat as the headline duration for how-to content.
timeRequired on CreativeWork is broader: approximate time to work through the content for the target audience, still as Duration.
Commerce and delivery: deliveryTime, handlingTime, and transitTime
Section titled “Commerce and delivery: deliveryTime, handlingTime, and transitTime”E-commerce markup distinguishes warehouse processing, carrier transit, and end-to-end delivery.
| Property | What it measures |
|---|---|
handlingTime / deliveryLeadTime |
Delay from order receipt until goods leave the warehouse or are ready for pickup |
transitTime |
Delay from dispatch until goods reach the customer |
deliveryTime |
Total delay from order receipt until goods reach the customer |
Schema.org on deliveryTime:
The total delay between the receipt of the order and the goods reaching the final customer.
— Schema.org, deliveryTime
handlingTime adds convention for merchant listings:
In the context of ShippingDeliveryTime, Typical properties: minValue, maxValue, unitCode (d for DAY). This is by common convention assumed to mean business days (if a unitCode is used, coded as “d”), i.e. only counting days when the business normally operates.
— Schema.org, handlingTime
Google’s ShippingDeliveryTime block aligns with that split:
ShippingDeliveryTimeis used to share the total delay between the receipt of an order and the goods reaching the final customer.— Google, Merchant listing structured data
Recommended properties there are handlingTime and transitTime as QuantitativeValue for shipping times—warehouse delay versus in-transit delay.
Common conclusion: deliveryTime describes the full customer-facing wait; handlingTime and transitTime are the parts Google asks merchants to expose explicitly in product offers, usually in business days rather than ISO 8601 durations.
ServicePeriod: cutoff time and business days for shipping policy
Section titled “ServicePeriod: cutoff time and business days for shipping policy”For ShippingService and related patterns, Schema.org recommends ServicePeriod instead of a bare number of days when cutoffs matter:
ServicePeriod represents a duration with some constraints about cutoff time and business days. This is used e.g. in shipping for handling times or transit time.
— Schema.org, ServicePeriod
ServicePeriod carries businessDays, cutoffTime, and duration (as Duration or QuantitativeValue). Google’s merchant shipping policy documents the same shape for handling—for example weekday processing with a cutoff and a 0–2 day range:
The duration of the handling time is between 0 and 2 days (where a handling time of 0 means orders are processed the same day if received before the cutoff time).
— Google, Merchant shipping policy structured data
On cutoffTime, Google states that orders received after cutoff add a day to the estimate, using ISO-8601 time such as 22:30:00-05:00.
seasonalOverride marks a limited period when particular shipping conditions apply—useful when handlingTime or transitTime differ seasonally.
QuantitativeValue for days: minValue, maxValue, and unitCode
Section titled “QuantitativeValue for days: minValue, maxValue, and unitCode”When handlingTime or transitTime appear under ShippingDeliveryTime, use QuantitativeValue with day units.
Google’s rules for handling times:
You must provide either
value(for a fixed handling time) ormaxValue(for an upper bound for handling time) together with theunitCode.minValuecan optionally be provided to specify a lower bound for handling time.— Google, Merchant shipping policy structured data
For transit, the same pattern applies with unitCode DAY or d. Do not send value together with minValue and maxValue; pick a fixed value or a range.
accelerationTime and non-ISO QuantitativeValue
Section titled “accelerationTime and non-ISO QuantitativeValue”Vehicle accelerationTime is a special case: seconds use unit code SEC, but there is no standard code for “0–100 km/h” as a single unit. Schema.org advises using SEC and putting reference speeds in the QuantitativeValue name or via valueReference.
Billing, loans, leases, and program length
Section titled “Billing, loans, leases, and program length”Several properties mix Duration, Number, and QuantitativeValue:
| Property | Role |
|---|---|
billingDuration |
How long a price component is billed (subscription length) |
billingPeriod |
Interval used to compute an invoice |
billingStart |
Delay before billing starts (unit via unitCode) |
loanTerm |
Duration of the loan agreement |
gracePeriod |
Time after due date before default |
leaseLength |
Lease length for accommodation |
eligibleDuration |
How long an offer stays valid |
advanceBookingRequirement |
Minimum time between accepting an offer and use |
billingDuration may be Duration or Number with unitCode (for example months). loanPaymentFrequency is explicitly a frequency (reciprocal of a period), not a duration—do not encode it as ISO 8601.
Education and employment examples include termDuration, timeToComplete, courseWorkload (often human-readable weekly hours), and jobDuration (seasonal or fixed-term jobs; listed in Schema.org’s pending area for feedback).
WarrantyPromise: durationOfWarranty and warrantyScope
Section titled “WarrantyPromise: durationOfWarranty and warrantyScope”WarrantyPromise bundles length and coverage:
A structured value representing the duration and scope of services that will be provided to a customer free of charge in case of a defect or malfunction of a product.
— Schema.org, WarrantyPromise
durationOfWarranty on WarrantyPromise commonly uses unitCode ANN (years), MON (months), or DAY (days). warrantyScope points to WarrantyScope enumeration values (for example GoodRelations URIs for parts, labor, and pickup). Attach promises via warranty on Offer; the older warrantyPromise property on actions is superseded by warranty.
Mass type: nutrition and product weight
Section titled “Mass type: nutrition and product weight”Mass is another Quantity datatype:
Properties that take Mass as values are of the form ‘<Number> <Mass unit of measure>’. E.g., ‘7 kg’.
— Schema.org, Mass
Nutrition fields on NutritionInformation—carbohydrateContent, proteinContent, fatContent, sodiumContent, and related *Content properties—expect Mass. weight on Product or shipping types uses the same pattern.
Do not use Duration for grams or milligrams; do not use Mass for cooking or shipping delays.
Common mistakes
Section titled “Common mistakes”- Using plain English durations where only ISO 8601 is specified (
cookTime,duration). - Putting
transitTimevalues inhandlingTimeor omitting one of the two in Google merchantShippingDeliveryTime. - Ignoring business days and
cutoffTimewhen same-day handling depends on order time. - Supplying
valueandminValue/maxValuetogether on shippingQuantitativeValue. - Marking
repeatFrequencyonScheduleas arbitrary text when the interval between events should be aDuration.
How to check this on your site
Section titled “How to check this on your site”- Extract JSON-LD from a product or recipe URL and confirm time fields use the expected type: ISO 8601 strings for
Durationproperties, day-basedQuantitativeValuefor merchanthandlingTimeandtransitTime. - Compare your shipping block to Merchant listing structured data and Merchant shipping policy structured data—including
businessDays,cutoffTime, andunitCodeDAYordwhere applicable. - Validate syntax with Google’s Rich Results Test or Schema Markup Validator (linked from Google’s structured data docs above) and fix reported type errors on
ServicePeriodandWarrantyPromise. - Cross-check property definitions on the canonical Schema.org term pages (for example handlingTime, Duration) when a validator disagrees with your template.
- You can check automatically in Answerwell (our tool): https://answerwell.org/workspace
Report an error or ask a question
Section titled “Report an error or ask a question”If something on this page is wrong or unclear, email yimasynthetic@gmail.com with the page URL and the exact wording you are asking about, and we will correct or clarify it.