Skip to content

Commit

Permalink
$mol_time_moment: fixed usec serial
Browse files Browse the repository at this point in the history
  • Loading branch information
jin committed Nov 20, 2023
1 parent f464b24 commit baaf0fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions time/moment/moment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -421,8 +421,8 @@ namespace $ {

'sss' : ( moment : $mol_time_moment )=> {
if( moment.second == null ) return ''
const millisecond = Math.floor( ( moment.second - Math.floor( moment.second ) ) * 1000 )
return String( 1000 + millisecond ).slice(1)
const millisecond = ( moment.second - Math.trunc( moment.second ) ).toFixed( 3 )
return millisecond.slice(2)
},

'Z' : ( moment : $mol_time_moment )=> {
Expand Down

0 comments on commit baaf0fa

Please sign in to comment.