kaneo (minimalist kanban) fork to experiment adding a tangled integration github.com/usekaneo/kaneo
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 9a620ba2f31238f03cd28f1da5ef3838d67e4e8a 15 lines 386 B view raw
1export function formatDuration(seconds: number): string { 2 const hours = Math.floor(seconds / 3600); 3 const minutes = Math.floor((seconds % 3600) / 60); 4 const remainingSeconds = seconds % 60; 5 6 if (hours > 0) { 7 return `${hours}h ${minutes}m ${remainingSeconds}s`; 8 } 9 10 if (minutes > 0) { 11 return `${minutes}m ${remainingSeconds}s`; 12 } 13 14 return `${remainingSeconds}s`; 15}