[your code here]

Ogi ogion.art at gmail.com
Wed Apr 14 07:10:31 UTC 2021


On Friday, 26 March 2021 at 18:31:46 UTC, Menshikovk Konstantin 
wrote:
> <...>

Hold my beer.

```
import std;

static if (Date.fromSimpleString(
         format!"%s-%s-%02d"(__DATE__[7..11], __DATE__[0..3], 
mixin(__DATE__[4..6]))
         ).dayOfWeek == DayOfWeek.wed) {
     pragma(msg, "It's Wednesday my dudes");
}
```

Run with `dmd wednesday -o-`.


More information about the Digitalmars-d mailing list