MilkScript

Automate tasks with MilkScript.

menu

Estimate


getMinutes()

Gets the length of this estimate in minutes.

Return value

The number of minutes.


minus(estimate)

Creates a copy of this estimate with the given estimate subtracted.

Parameters

estimate

The estimate to subtract from this one.

Return value

A new Estimate. Cannot be less than zero minutes and hours.


minusHours(hours)

Creates a copy of this estimate with the given number of hours subtracted.

Parameters

hours

The number of hours to subtract from this one.

Return value

A new Estimate. Cannot be less than zero minutes and hours.


minusMinutes(minutes)

Creates a copy of this estimate with the given number of minutes subtracted.

Parameters

minutes

The number of minutes to subtract from this one.

Return value

A new Estimate. Cannot be less than zero minutes and hours.


plus(estimate)

Creates a copy of this estimate with the given estimate added.

Parameters

estimate

The estimate to add to this one.

Return value

A new Estimate. Cannot be less than zero minutes and hours.


plusHours(hours)

Creates a copy of this estimate with the given number of hours added.

Parameters

hours

The number of hours to add to this one.

Return value

A new Estimate. Cannot be less than zero minutes and hours.


plusMinutes(hours)

Creates a copy of this estimate with the given number of minutes added.

Parameters

hours

The number of minutes to add to this one.

Return value

A new Estimate. Cannot be less than zero minutes and hours.