1"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[3817],{5588:(n,e,s)=>{s.r(e),s.d(e,{assets:()=>o,contentTitle:()=>a,default:()=>c,frontMatter:()=>d,metadata:()=>t,toc:()=>l});var r=s(74848),i=s(28453);const d={title:"duration",id:"duration"},a='API Reference <a name="API Reference" id="api-reference"></a>',t={id:"standard-library/std/duration",title:"duration",description:"Classes",source:"@site/api_versioned_docs/version-latest/04-standard-library/std/duration.md",sourceDirName:"04-standard-library/std",slug:"/standard-library/std/duration",permalink:"/docs/api/standard-library/std/duration",draft:!1,unlisted:!1,editUrl:"https://github.com/winglang/wing/tree/main/docs/api/04-standard-library/std/duration.md",tags:[],version:"latest",frontMatter:{title:"duration",id:"duration"},sidebar:"defaultSidebar",previous:{title:"datetime",permalink:"/docs/api/standard-library/std/datetime"},next:{title:"json",permalink:"/docs/api/standard-library/std/json"}},o={},l=[{value:'Classes <a name="Classes" id="Classes"></a>',id:"classes-",level:2},{value:'Duration <a name="Duration" id="@winglang/sdk.std.Duration"></a>',id:"duration-",level:3},{value:'Static Functions <a name="Static Functions" id="Static Functions"></a>',id:"static-functions-",level:4},{value:'<code>fromDays</code> <a name="fromDays" id="@winglang/sdk.std.Duration.fromDays"></a>',id:"fromdays-",level:5},{value:'<code>amount</code><sup>Required</sup> <a name="amount" id="@winglang/sdk.std.Duration.fromDays.parameter.amount"></a>',id:"amountrequired-",level:6},{value:'<code>fromHours</code> <a name="fromHours" id="@winglang/sdk.std.Duration.fromHours"></a>',id:"fromhours-",level:5},{value:'<code>amount</code><sup>Required</sup> <a name="amount" id="@winglang/sdk.std.Duration.fromHours.parameter.amount"></a>',id:"amountrequired--1",level:6},{value:'<code>fromMilliseconds</code> <a name="fromMilliseconds" id="@winglang/sdk.std.Duration.fromMilliseconds"></a>',id:"frommilliseconds-",level:5},{value:'<code>amount</code><sup>Required</sup> <a name="amount" id="@winglang/sdk.std.Duration.fromMilliseconds.parameter.amount"></a>',id:"amountrequired--2",level:6},{value:'<code>fromMinutes</code> <a name="fromMinutes" id="@winglang/sdk.std.Duration.fromMinutes"></a>',id:"fromminutes-",level:5},{value:'<code>amount</code><sup>Required</sup> <a name="amount" id="@winglang/sdk.std.Duration.fromMinutes.parameter.amount"></a>',id:"amountrequired--3",level:6},{value:'<code>fromMonths</code> <a name="fromMonths" id="@winglang/sdk.std.Duration.fromMonths"></a>',id:"frommonths-",level:5},{value:'<code>amount</code><sup>Required</sup> <a name="amount" id="@winglang/sdk.std.Duration.fromMonths.parameter.amount"></a>',id:"amountrequired--4",level:6},{value:'<code>fromSeconds</code> <a name="fromSeconds" id="@winglang/sdk.std.Duration.fromSeconds"></a>',id:"fromseconds-",level:5},{value:'<code>amount</code><sup>Required</sup> <a name="amount" id="@winglang/sdk.std.Duration.fromSeconds.parameter.amount"></a>',id:"amountrequired--5",level:6},{value:'<code>fromYears</code> <a name="fromYears" id="@winglang/sdk.std.Duration.fromYears"></a>',id:"fromyears-",level:5},{value:'<code>amount</code><sup>Required</sup> <a name="amount" id="@winglang/sdk.std.Duration.fromYears.parameter.amount"></a>',id:"amountrequired--6",level:6},{value:'Properties <a name="Properties" id="Properties"></a>',id:"properties-",level:4},{value:'<code>days</code><sup>Required</sup> <a name="days" id="@winglang/sdk.std.Duration.property.days"></a>',id:"daysrequired-",level:5},{value:'<code>hours</code><sup>Required</sup> <a name="hours" id="@winglang/sdk.std.Duration.property.hours"></a>',id:"hoursrequired-",level:5},{value:'<code>milliseconds</code><sup>Required</sup> <a name="milliseconds" id="@winglang/sdk.std.Duration.property.milliseconds"></a>',id:"millisecondsrequired-",level:5},{value:'<code>minutes</code><sup>Required</sup> <a name="minutes" id="@winglang/sdk.std.Duration.property.minutes"></a>',id:"minutesrequired-",level:5},{value:'<code>months</code><sup>Required</sup> <a name="months" id="@winglang/sdk.std.Duration.property.months"></a>',id:"monthsrequired-",level:5},{value:'<code>seconds</code><sup>Required</sup> <a name="seconds" id="@winglang/sdk.std.Duration.property.seconds"></a>',id:"secondsrequired-",level:5},{value:'<code>years</code><sup>Required</sup> <a name="years" id="@winglang/sdk.std.Duration.property.years"></a>',id:"yearsrequired-",level:5}];function u(n){const e={a:"a",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h
15:"h5",h6:"h6",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",sup:"sup",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,i.R)(),...n.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(e.h1,{id:"api-reference-",children:["API Reference ",(0,r.jsx)(e.a,{name:"API Reference",id:"api-reference"})]}),"\n",(0,r.jsxs)(e.h2,{id:"classes-",children:["Classes ",(0,r.jsx)(e.a,{name:"Classes",id:"Classes"})]}),"\n",(0,r.jsxs)(e.h3,{id:"duration-",children:["Duration ",(0,r.jsx)(e.a,{name:"Duration",id:"@winglang/sdk.std.Duration"})]}),"\n",(0,r.jsxs)(e.ul,{children:["\n",(0,r.jsxs)(e.li,{children:[(0,r.jsx)(e.em,{children:"Implements:"})," ",(0,r.jsx)(e.a,{href:"#@winglang/sdk.std.ILiftable",children:"ILiftable"})]}),"\n"]}),"\n",(0,r.jsx)(e.p,{children:"Represents a length of time."}),"\n",(0,r.jsxs)(e.h4,{id:"static-functions-",children:["Static Functions ",(0,r.jsx)(e.a,{name:"Static Functions",id:"Static Functions"})]}),"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",(0,r.jsxs)(e.table,{children:[(0,r.jsx)(e.thead,{children:(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.th,{children:(0,r.jsx)(e.strong,{children:"Name"})}),(0,r.jsx)(e.th,{children:(0,r.jsx)(e.strong,{children:"Description"})})]})}),(0,r.jsxs)(e.tbody,{children:[(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:(0,r.jsx)(e.a,{href:"#@winglang/sdk.std.Duration.fromDays",children:"fromDays"})})}),(0,r.jsx)(e.td,{children:"Create a Duration representing an amount of days."})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:(0,r.jsx)(e.a,{href:"#@winglang/sdk.std.Duration.fromHours",children:"fromHours"})})}),(0,r.jsx)(e.td,{children:"Create a Duration representing an amount of hours."})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:(0,r.jsx)(e.a,{href:"#@winglang/sdk.std.Duration.fromMilliseconds",children:"fromMilliseconds"})})}),(0,r.jsx)(e.td,{children:"Create a Duration representing an amount of milliseconds."})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:(0,r.jsx)(e.a,{href:"#@winglang/sdk.std.Duration.fromMinutes",children:"fromMinutes"})})}),(0,r.jsx)(e.td,{children:"Create a Duration representing an amount of minutes."})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:(0,r.jsx)(e.a,{href:"#@winglang/sdk.std.Duration.fromMonths",children:"fromMonths"})})}),(0,r.jsx)(e.td,{children:"Create a Duration representing an amount of months."})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:(0,r.jsx)(e.a,{href:"#@winglang/sdk.std.Duration.fromSeconds",children:"fromSeconds"})})}),(0,r.jsx)(e.td,{children:"Create a Duration representing an amount of seconds."})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:(0,r.jsx)(e.a,{href:"#@winglang/sdk.std.Duration.fromYears",children:"fromYears"})})}),(0,r.jsx)(e.td,{children:"Create a Duration representing an amount of years."})]})]})]}),"\n",(0,r.jsx)(e.hr,{}),"\n",(0,r.jsxs)(e.h5,{id:"fromdays-",children:[(0,r.jsx)(e.code,{children:"fromDays"})," ",(0,r.jsx)(e.a,{name:"fromDays",id:"@winglang/sdk.std.Duration.fromDays"})]}),"\n",(0,r.jsx)(e.pre,{children:(0,r.jsx)(e.code,{className:"language-wing",children:"duration.fromDays(amount: num);\n"})}),"\n",(0,r.jsx)(e.p,{children:"Create a Duration representing an amount of days."}),"\n",(0,r.jsxs)(e.h6,{id:"amountrequired-",children:[(0,r.jsx)(e.code,{children:"amount"}),(0,r.jsx)(e.sup,{children:"Required"})," ",(0,r.jsx)(e.a,{name:"amount",id:"@winglang/sdk.std.Duration.fromDays.parameter.amount"})]}),"\n",(0,r.jsxs)(e.ul,{children:["\n",(0,r.jsxs)(e.li,{children:[(0,r.jsx)(e.em,{children:"Type:"})," num"]}),"\n"]}),"\n",(0,r.jsxs)(e.p,{children:["the amount of Days the ",(0,r.jsx)(e.code,{children:"Duration"})," will represent."]}),"\n",(0,r.jsx)(e.hr,{}),"\n",(0,r.jsxs)(e.h5,{id:"fromhours-",children:[(0,r.jsx)(e.code,{children:"fromHours"})," ",(0,r.jsx)(e.a,{name:"fromHours",id:"@winglang/sdk.std.Duration.fromHours"})]}),"\n",(0,r.jsx)(e.pre,{children:(0,r.jsx)(e.code,{className:"language-wing",children:"duration.fromHours(amount: num);\n"})}),"\n",(0,r.jsx)(e.p,{children:"Create a Duration representing an amount of hours."}),"\n",(0,r.jsxs)(e.h6,{id:"amountrequired--1",children:[(0,r.jsx)(e.code,{children:"amount"}),(0,r.jsx)(e.sup,{children:"Required"})," ",(0,r.jsx)(e.a,{name:"amount",id:"@winglang/sdk.std.Duration.fromHours.parameter.amount"})]}),"\n",(0,r.jsxs)(e.ul,{children:["\n",(0,r.jsxs)(e.li,{children:[(0,r.jsx)(e.em,{children:"Type:"})," num"]}),"\n"]}),"\n",(0,r.jsxs)(e.p,{children:["the amount of Hours the ",(0,r.jsx)(e.code,{children:"Duration"})," will represent."]}),"\n",(0,r.jsx)(e.hr,{}),"\n",(0,r.jsxs)(e.h5,{id:"frommilliseconds-",children:[(0,r.jsx)(e.code,{children:"fromMilliseconds"})," ",(0,r.jsx)(e.a,{name:"fromMilliseconds",id:"@winglang/sdk.std.Duration.fromMilliseconds"})]}),"\n",(0,r.jsx)(e.pre,{children:(0,r.jsx)(e.code,{className:"language-wing",children:"duration.fromMilliseconds(amount: num);\n"})}),"\n",(0,r.jsx)(e.p,{children:"Create a Duration representing an amount of milliseconds."}),"\n",(0,r.jsxs)(e.h6,{id:"amountrequired--2",children:[(0,r.jsx)(e.code,{children:"amount"}),(0,r.jsx)(e.sup,{children:"Required"})," ",(0,r.jsx)(e.a,{name:"amount",id:"@winglang/sdk.std.Duration.fromMilliseconds.parameter.amount"})]}),"\n",(0,r.jsxs)(e.ul,{children:["\n",(0,r.jsxs)(e.li,{children:[(0,r.jsx)(e.em,{children:"Type:"})," num"]}),"\n"]}),"\n",(0,r.jsxs)(e.p,{children:["the amount of Milliseconds the ",(0,r.jsx)(e.code,{children:"Duration"})," will represent."]}),"\n",(0,r.jsx)(e.hr,{}),"\n",(0,r.jsxs)(e.h5,{id:"fromminutes-",children:[(0,r.jsx)(e.code,{children:"fromMinutes"})," ",(0,r.jsx)(e.a,{name:"fromMinutes",id:"@winglang/sdk.std.Duration.fromMinutes"})]}),"\n",(0,r.jsx)(e.pre,{children:(0,r.jsx)(e.code,{className:"language-wing",children:"duration.fromMinutes(amount: num);\n"})}),"\n",(0,r.jsx)(e.p,{children:"Create a Duration representing an amount of minutes."}),"\n",(0,r.jsxs)(e.h6,{id:"amountrequired--3",children:[(0,r.jsx)(e.code,{children:"amount"}),(0,r.jsx)(e.sup,{children:"Required"})," ",(0,r.jsx)(e.a,{name:"amount",id:"@winglang/sdk.std.Duration.fromMinutes.parameter.amount"})]}),"\n",(0,r.jsxs)(e.ul,{children:["\n",(0,r.jsxs)(e.li,{children:[(0,r.jsx)(e.em,{children:"Type:"})," num"]}),"\n"]}),"\n",(0,r.jsxs)(e.p,{children:["the amount of Minutes the ",(0,r.jsx)(e.code,{children:"Duration"})," will represent."]}),"\n",(0,r.jsx)(e.hr,{}),"\n",(0,r.jsxs)(e.h5,{id:"frommonths-",children:[(0,r.jsx)(e.code,{children:"fromMonths"})," ",(0,r.jsx)(e.a,{name:"fromMonths",id:"@winglang/sdk.std.Duration.fromMonths"})]}),"\n",(0,r.jsx)(e.pre,{children:(0,r.jsx)(e.code,{className:"language-wing",children:"duration.fromMonths(amount: num);\n"})}),"\n",(0,r.jsx)(e.p,{children:"Create a Duration representing an amount of months."}),"\n",(0,r.jsxs)(e.h6,{id:"amountrequired--4",children:[(0,r.jsx)(e.code,{children:"amount"}),(0,r.jsx)(e.sup,{children:"Required"})," ",(0,r.jsx)(e.a,{name:"amount",id:"@winglang/sdk.std.Duration.fromMonths.parameter.amount"})]}),"\n",(0,r.jsxs)(e.ul,{children:["\n",(0,r.jsxs)(e.li,{children:[(0,r.jsx)(e.em,{children:"Type:"})," num"]}),"\n"]}),"\n",(0,r.jsxs)(e.p,{children:["the amount of Months the ",(0,r.jsx)(e.code,{children:"Duration"})," will represent."]}),"\n",(0,r.jsx)(e.hr,{}),"\n",(0,r.jsxs)(e.h5,{id:"fromseconds-",children:[(0,r.jsx)(e.code,{children:"fromSeconds"})," ",(0,r.jsx)(e.a,{name:"fromSeconds",id:"@winglang/sdk.std.Duration.fromSeconds"})]}),"\n",(0,r.jsx)(e.pre,{children:(0,r.jsx)(e.code,{className:"language-wing",children:"duration.fromSeconds(amount: num);\n"})}),"\n",(0,r.jsx)(e.p,{children:"Create a Duration representing an amount of seconds."}),"\n",(0,r.jsxs)(e.h6,{id:"amountrequired--5",children:[(0,r.jsx)(e.code,{children:"amount"}),(0,r.jsx)(e.sup,{children:"Required"})," ",(0,r.jsx)(e.a,{name:"amount",id:"@winglang/sdk.std.Duration.fromSeconds.parameter.amount"})]}),"\n",(0,r.jsxs)(e.ul,{children:["\n",(0,r.jsxs)(e.li,{children:[(0,r.jsx)(e.em,{children:"Type:"})," num"]}),"\n"]}),"\n",(0,r.jsxs)(e.p,{children:["the amount of Seconds the ",(0,r.jsx)(e.code,{children:"Duration"})," will represent."]}),"\n",(0,r.jsx)(e.hr,{}),"\n",(0,r.jsxs)(e.h5,{id:"fromyears-",children:[(0,r.jsx)(e.code,{children:"fromYears"})," ",(0,r.jsx)(e.a,{name:"fromYears",id:"@winglang/sdk.std.Duration.fromYears"})]}),"\n",(0,r.jsx)(e.pre,{children:(0,r.jsx)(e.code,{className:"language-wing",children:"duration.fromYears(amount: num);\n"})}),"\n",(0,r.jsx)(e.p,{children:"Create a Duration representing an amount of years."}),"\n",(0,r.jsxs)(e.h6,{id:"amountrequired--6",children:[(0,r.jsx)(e.code,{children:"amount"}),(0,r.jsx)(e.sup,{children:"Required"})," ",(0,r.jsx)(e.a,{name:"amount",id:"@winglang/sdk.std.Duration.fromYears.parameter.amount"})]}),"\n",(0,r.jsxs)(e.ul,{children:["\n",(0,r.jsxs)(e.li,{children:[(0,r.jsx)(e.em,{children:"Type:"})," num"]}),"\n"]}),"\n",(0,r.jsxs)(e.p,{children:["the amount of Years the ",(0,r.jsx)(e.code,{children:"Duration"})," will represent."]}),"\n",(0,r.jsx)(e.hr,{}),"\n",(0,r.jsxs)(e.h4,{id:"properties-",children:["Properties ",(0,r.jsx)(e.a,{name:"Properties",id:"Properties"})]}),"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",(0,r.jsxs)(e.table,{children:[(0,r.jsx)(e.thead,{children:(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.th,{children:(0,r.jsx)(e.strong,{children:"Name"})}),(0,r.jsx)(e.th,{children:(0,r.jsx)(e.strong,{children:"Type"})}),(0,r.jsx)(e.th,{children:(0,r.jsx)(e.strong,{children:"Description"})})]})}),(0,r.jsxs)(e.tbody,{children:[(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:(0,r.jsx)(e.a,{href:"#@winglang/sdk.std.Duration.property.days",children:"days"})})}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"num"})}),(0,r.jsx)(e.td,{children:"Return the total number of days in this Duration."})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:(0,r.jsx)(e.a,{href:"#@winglang/sdk.std.Duration.property.hours",children:"hours"})})}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"num"})}),(0,r.jsx)(e.td,{children:"Return the total number of hours in this Duration."})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:(0,r.jsx)(e.a,{href:"#@winglang/sdk.std.Duration.property.milliseconds",children:"milliseconds"})})}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"num"})}),(0,r.jsx)(e.td,{children:"Return the total number of milliseconds in this Duration."})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:(0,r.jsx)(e.a,{href:"#@winglang/sdk.std.Duration.property.minutes",children:"minutes"})})}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"num"})}),(0,r.jsx)(e.td,{children:"Return the total number of minutes in this Duration."})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:(0,r.jsx)(e.a,{href:"#@winglang/sdk.std.Duration.property.months",children:"months"})})}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"num"})}),(0,r.jsx)(e.td,{children:"Return the total number of months in this Duration."})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:(0,r.jsx)(e.a,{href:"#@winglang/sdk.std.Duration.property.seconds",children:"seconds"})})}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"num"})}
1),(0,r.jsx)(e.td,{children:"Return the total number of seconds in this Duration."})]}),(0,r.jsxs)(e.tr,{children:[(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:(0,r.jsx)(e.a,{href:"#@winglang/sdk.std.Duration.property.years",children:"years"})})}),(0,r.jsx)(e.td,{children:(0,r.jsx)(e.code,{children:"num"})}),(0,r.jsx)(e.td,{children:"Return the total number of years in this Duration."})]})]})]}),"\n",(0,r.jsx)(e.hr,{}),"\n",(0,r.jsxs)(e.h5,{id:"daysrequired-",children:[(0,r.jsx)(e.code,{children:"days"}),(0,r.jsx)(e.sup,{children:"Required"})," ",(0,r.jsx)(e.a,{name:"days",id:"@winglang/sdk.std.Duration.property.days"})]}),"\n",(0,r.jsx)(e.pre,{children:(0,r.jsx)(e.code,{className:"language-wing",children:"days: num;\n"})}),"\n",(0,r.jsxs)(e.ul,{children:["\n",(0,r.jsxs)(e.li,{children:[(0,r.jsx)(e.em,{children:"Type:"})," num"]}),"\n"]}),"\n",(0,r.jsx)(e.p,{children:"Return the total number of days in this Duration."}),"\n",(0,r.jsx)(e.hr,{}),"\n",(0,r.jsxs)(e.h5,{id:"hoursrequired-",children:[(0,r.jsx)(e.code,{children:"hours"}),(0,r.jsx)(e.sup,{children:"Required"})," ",(0,r.jsx)(e.a,{name:"hours",id:"@winglang/sdk.std.Duration.property.hours"})]}),"\n",(0,r.jsx)(e.pre,{children:(0,r.jsx)(e.code,{className:"language-wing",children:"hours: num;\n"})}),"\n",(0,r.jsxs)(e.ul,{children:["\n",(0,r.jsxs)(e.li,{children:[(0,r.jsx)(e.em,{children:"Type:"})," num"]}),"\n"]}),"\n",(0,r.jsx)(e.p,{children:"Return the total number of hours in this Duration."}),"\n",(0,r.jsx)(e.hr,{}),"\n",(0,r.jsxs)(e.h5,{id:"millisecondsrequired-",children:[(0,r.jsx)(e.code,{children:"milliseconds"}),(0,r.jsx)(e.sup,{children:"Required"})," ",(0,r.jsx)(e.a,{name:"milliseconds",id:"@winglang/sdk.std.Duration.property.milliseconds"})]}),"\n",(0,r.jsx)(e.pre,{children:(0,r.jsx)(e.code,{className:"language-wing",children:"milliseconds: num;\n"})}),"\n",(0,r.jsxs)(e.ul,{children:["\n",(0,r.jsxs)(e.li,{children:[(0,r.jsx)(e.em,{children:"Type:"})," num"]}),"\n"]}),"\n",(0,r.jsx)(e.p,{children:"Return the total number of milliseconds in this Duration."}),"\n",(0,r.jsx)(e.hr,{}),"\n",(0,r.jsxs)(e.h5,{id:"minutesrequired-",children:[(0,r.jsx)(e.code,{children:"minutes"}),(0,r.jsx)(e.sup,{children:"Required"})," ",(0,r.jsx)(e.a,{name:"minutes",id:"@winglang/sdk.std.Duration.property.minutes"})]}),"\n",(0,r.jsx)(e.pre,{children:(0,r.jsx)(e.code,{className:"language-wing",children:"minutes: num;\n"})}),"\n",(0,r.jsxs)(e.ul,{children:["\n",(0,r.jsxs)(e.li,{children:[(0,r.jsx)(e.em,{children:"Type:"})," num"]}),"\n"]}),"\n",(0,r.jsx)(e.p,{children:"Return the total number of minutes in this Duration."}),"\n",(0,r.jsx)(e.hr,{}),"\n",(0,r.jsxs)(e.h5,{id:"monthsrequired-",children:[(0,r.jsx)(e.code,{children:"months"}),(0,r.jsx)(e.sup,{children:"Required"})," ",(0,r.jsx)(e.a,{name:"months",id:"@winglang/sdk.std.Duration.property.months"})]}),"\n",(0,r.jsx)(e.pre,{children:(0,r.jsx)(e.code,{className:"language-wing",children:"months: num;\n"})}),"\n",(0,r.jsxs)(e.ul,{children:["\n",(0,r.jsxs)(e.li,{children:[(0,r.jsx)(e.em,{children:"Type:"})," num"]}),"\n"]}),"\n",(0,r.jsx)(e.p,{children:"Return the total number of months in this Duration."}),"\n",(0,r.jsx)(e.hr,{}),"\n",(0,r.jsxs)(e.h5,{id:"secondsrequired-",children:[(0,r.jsx)(e.code,{children:"seconds"}),(0,r.jsx)(e.sup,{children:"Required"})," ",(0,r.jsx)(e.a,{name:"seconds",id:"@winglang/sdk.std.Duration.property.seconds"})]}),"\n",(0,r.jsx)(e.pre,{children:(0,r.jsx)(e.code,{className:"language-wing",children:"seconds: num;\n"})}),"\n",(0,r.jsxs)(e.ul,{children:["\n",(0,r.jsxs)(e.li,{children:[(0,r.jsx)(e.em,{children:"Type:"})," num"]}),"\n"]}),"\n",(0,r.jsx)(e.p,{children:"Return the total number of seconds in this Duration."}),"\n",(0,r.jsx)(e.hr,{}),"\n",(0,r.jsxs)(e.h5,{id:"yearsrequired-",children:[(0,r.jsx)(e.code,{children:"years"}),(0,r.jsx)(e.sup,{children:"Required"})," ",(0,r.jsx)(e.a,{name:"years",id:"@winglang/sdk.std.Duration.property.years"})]}),"\n",(0,r.jsx)(e.pre,{children:(0,r.jsx)(e.code,{className:"language-wing",children:"years: num;\n"})}),"\n",(0,r.jsxs)(e.ul,{children:["\n",(0,r.jsxs)(e.li,{children:[(0,r.jsx)(e.em,{children:"Type:"})," num"]}),"\n"]}),"\n",(0,r.jsx)(e.p,{children:"Return the total number of years in this Duration."}),"\n",(0,r.jsx)(e.hr,{})]})}function c(n={}){const{wrapper:e}={...(0,i.R)(),...n.components};return e?(0,r.jsx)(e,{...n,children:(0,r.jsx)(u,{...n})}):u(n)}},28453:(n,e,s)=>{s.d(e,{R:()=>a,x:()=>t});var r=s(96540);const i={},d=r.createContext(i);function a(n){const e=r.useContext(d);return r.useMemo((function(){return"function"==typeof n?n(e):{...e,...n}}),[e,n])}function t(n){let e;return e=n.disableParentContext?"function"==typeof n.components?n.components(i):n.components||i:a(n.components),r.createElement(d.Provider,{value:e},n.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.