On Sunday, 15 November 2020 at 03:14:07 UTC, Marcone wrote:
I want to convert seconds to hour, minut and second.
Do you want to convert a *duration* into hours/minutes/seconds,
or format a UNIX *timestamp* to hours/minutes/seconds? These are
conceptually two different things.
On Sunday, 15 November 2020 at 03:15:29 UTC, Anonymouse wrote:
On Sunday, 15 November 2020 at 03:08:48 UTC, Marcone wrote:
On Sunday, 15 November 2020 at 02:29:20 UTC, Anonymouse wrote:
On Sunday, 15 November 2020 at 01:04:41 UTC, Marcone wrote:
auto mytime = Clock.currTime().toUnixTime()
On Sunday, 15 November 2020 at 03:15:29 UTC, Anonymouse wrote:
On Sunday, 15 November 2020 at 03:08:48 UTC, Marcone wrote:
On Sunday, 15 November 2020 at 02:29:20 UTC, Anonymouse wrote:
On Sunday, 15 November 2020 at 01:04:41 UTC, Marcone wrote:
auto mytime = Clock.currTime().toUnixTime()
On Sunday, 15 November 2020 at 03:08:48 UTC, Marcone wrote:
On Sunday, 15 November 2020 at 02:29:20 UTC, Anonymouse wrote:
On Sunday, 15 November 2020 at 01:04:41 UTC, Marcone wrote:
auto mytime = Clock.currTime().toUnixTime()
writeln(strftime("%Hh:%Mm:%Ss", mytime)); How can I make some
On Sunday, 15 November 2020 at 02:29:20 UTC, Anonymouse wrote:
On Sunday, 15 November 2020 at 01:04:41 UTC, Marcone wrote:
auto mytime = Clock.currTime().toUnixTime()
writeln(strftime("%Hh:%Mm:%Ss", mytime)); How can I make some
like this in D?
auto mytime = Clock.currTime;
On Sunday, 15 November 2020 at 02:29:20 UTC, Anonymouse wrote:
On Sunday, 15 November 2020 at 01:04:41 UTC, Marcone wrote:
auto mytime = Clock.currTime().toUnixTime()
writeln(strftime("%Hh:%Mm:%Ss", mytime)); How can I make some
like this in D?
auto mytime = Clock.currTime;
On Sunday, 15 November 2020 at 01:04:41 UTC, Marcone wrote:
auto mytime = Clock.currTime().toUnixTime()
writeln(strftime("%Hh:%Mm:%Ss", mytime)); How can I make some
like this in D?
auto mytime = Clock.currTime;
writefln("%02dh:%02dm:%02ds", mytime.hour, mytime.minute,
mytime.second);
auto mytime = Clock.currTime().toUnixTime()
writeln(strftime("%Hh:%Mm:%Ss", mytime)); How can I make some
like this in D?