New time format: "1h30m7s".
This is fairly flexible, so you could say 10s1h, or even 1h1h1h (which is equivalent to 3h). Time parsing is now implemented by a single function, so there should be no inconsistencies. The old [[HH:]MM:]SS syntax is still supported, but not used in prompts.
This commit is contained in:
parent
c0df452c04
commit
34712e643c
6 changed files with 119 additions and 129 deletions
6
str.h
6
str.h
|
|
@ -15,7 +15,9 @@
|
|||
|
||||
#include "wide.h"
|
||||
|
||||
size_t tokenise(const wchar_t *, wchar_t ***result);
|
||||
void tokfree(wchar_t ***);
|
||||
size_t tokenise (const wchar_t *, wchar_t ***result);
|
||||
void tokfree (wchar_t ***);
|
||||
time_t parsetime (wchar_t *);
|
||||
wchar_t *maketime (time_t);
|
||||
|
||||
#endif /* !TTS_STR_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue