# Duration dont work on 2026.0.0

**URL:** <https://scilab.discourse.group/t/duration-dont-work-on-2026-0-0/1086>\
**Category:** General usage\
**Created:** [November 17, 2025, 8:10am UTC](https://scilab.discourse.group/t/duration-dont-work-on-2026-0-0/1086 "2025-11-17T08:10:22Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![pascal](https://yyz2.discourse-cdn.com/free1/user_avatar/scilab.discourse.group/pascal/32/40_2.png) [@pascal](https://scilab.discourse.group/u/pascal)\
**Post date:** [November 17, 2025, 8:10am UTC](https://scilab.discourse.group/t/duration-dont-work-on-2026-0-0/1086/1 "2025-11-17T08:10:22Z")

</div>

Hi scilab team i tried following on windows and it gaves me errors

and just duration does not work anymore

duration(“00:00:26.310”,“hh:mm:ss.SSS”,“hh:mm:ss.SSS”)

duration: Unknown option “hh:mm:ss.SSS”.

what do i do wrong?

---

<div class="post-metadata">

**Author:** ![davcheze](https://avatars.discourse-cdn.com/v4/letter/d/90db22/32.png) [@davcheze](https://scilab.discourse.group/u/davcheze)\
**Post date:** [November 17, 2025, 8:39am UTC](https://scilab.discourse.group/t/duration-dont-work-on-2026-0-0/1086/2 "2025-11-17T08:39:34Z")

</div>

Hello Pascal, it seems you double pasted the format in 2nd argument position instead indicating inputformat option :

> → duration(“00:00:26.310”,“InputFormat”, “hh:mm:ss.SSS”)
> 
> ans = [duration]
> 
> 00:00:26.310

David

---

<div class="post-metadata">

**Author:** ![pascal](https://yyz2.discourse-cdn.com/free1/user_avatar/scilab.discourse.group/pascal/32/40_2.png) [@pascal](https://scilab.discourse.group/u/pascal)\
**Post date:** [November 17, 2025, 8:47am UTC](https://scilab.discourse.group/t/duration-dont-work-on-2026-0-0/1086/3 "2025-11-17T08:47:10Z")

</div>

yes i did, but there was another error whilst i had blanks but still. should there be a problem, if both input and output are the same, should it not be recognised as it is?

---

<div class="post-metadata">

**Author:** ![vincent.couvert](https://avatars.discourse-cdn.com/v4/letter/v/f4b2a3/32.png) [@vincent.couvert](https://scilab.discourse.group/u/vincent.couvert)\
**Post date:** [November 19, 2025, 2:11pm UTC](https://scilab.discourse.group/t/duration-dont-work-on-2026-0-0/1086/4 "2025-11-19T14:11:48Z")

</div>

Hello @pascal

Can you send an example to reproduce the problem?

Best regards.

---

<div class="post-metadata">

**Author:** ![pascal](https://yyz2.discourse-cdn.com/free1/user_avatar/scilab.discourse.group/pascal/32/40_2.png) [@pascal](https://scilab.discourse.group/u/pascal)\
**Post date:** [November 19, 2025, 3:08pm UTC](https://scilab.discourse.group/t/duration-dont-work-on-2026-0-0/1086/5 "2025-11-19T15:08:11Z")

</div>

its more a philosophical question, should it not know that there is an input and an output format, and if both are the same, it should not care?  
duration(“00:00:26.310”,“hh:mm:ss.SSS”,“hh:mm:ss.SSS”)

---

<div class="post-metadata">

**Author:** ![mottelet](https://yyz2.discourse-cdn.com/free1/user_avatar/scilab.discourse.group/mottelet/32/13_2.png) [@mottelet](https://scilab.discourse.group/u/mottelet)\
**Post date:** [November 19, 2025, 4:16pm UTC](https://scilab.discourse.group/t/duration-dont-work-on-2026-0-0/1086/6 "2025-11-19T16:16:33Z")

</div>

> [@pascal](#):
>
> duration(“00:00:26.310”,“hh:mm:ss.SSS”,“hh:mm:ss.SSS”)

There is no philosophical question here, this is a misuse of `duration`, as the valid syntaxes are well defined (see [duration - Create a duration - duration in hours, minutes and seconds](https://help.scilab.org/docs/2026.0.0/en_US/duration.html))

```auto
d = duration(h, m, s)
d = duration(h, m, s, ms)
d = duration(x)
d = duration(str)
d = duration(str, "InputFormat", inputFormat)
d = duration(..., "OutputFormat", outputFormat)

```

---

<div class="post-metadata">

**Author:** ![pascal](https://yyz2.discourse-cdn.com/free1/user_avatar/scilab.discourse.group/pascal/32/40_2.png) [@pascal](https://scilab.discourse.group/u/pascal)\
**Post date:** [November 19, 2025, 9:41pm UTC](https://scilab.discourse.group/t/duration-dont-work-on-2026-0-0/1086/7 "2025-11-19T21:41:32Z")

</div>

Ah, yes, now I see, it’s the placement of command and format twice of input and output.

Thanks, Pascal
