Skip to main content
Reference

ItemSaleExpiration SFO

Properties

Methods

note

These samples assume that the item sale expires in 15 days, 10 hours, and 5 minutes.

MethodSignatureComments/Sample
getYearinteger getYear()returns 0
getMonthinteger getMonth()returns 0
getWeekinteger getWeek()returns 2
getDayinteger getDay()returns 1
getHourinteger getHour()returns 10
getMinuteinteger getMinute()returns 5
getSecondinteger getSecond()returns 0
getTotalSecondsinteger getTotalSeconds()returns 1332000
getTotalMinutesinteger getTotalMinutes()returns 22000
getTotalHoursinteger getTotalHours()returns 370
getCountdownLongstring getCountdownLong()returns "2 weeks, 1 day, 10 hours, 5 minutes"
getCountdownShortstring getCountdownShort()returns "15:10:05:00"
:::note
This method is approximate for durations of 1 month or greater
:::

See Also

Was this page helpful?