You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 15 Next »

Type: Server.

Description: This class objects store duration as a date and a time from Jan 1st, 1970, 00:00:00 till now.


subtract(duration)

Описание: Возвращает SimpleDuration с результатом текущего SimpleDuration минус переданный.

Принимает:SimpleDuration.
Возвращает: SimpleDuration.

Example:

var simple_duration = new SimpleDuration('10 05:00:00');
var simple_duration_1 = new SimpleDuration('05:00:00');
var result= simple_duration .subtract(simple_duration_1);
ss.info( result.getDisplayValue() );


  • No labels