PHP, (削除) 46 (削除ここまで), 43(削除) 43 (削除ここまで), 31 bytes
function f($s){echo date<?=date(d,strtotime($s$argv[1]));}
The functionprogram receives as input a string like "second saturday of March 2019"
The function returnsprogram prints the day number.
-12 bytes thanks to Shaggy.
PHP, (削除) 46 (削除ここまで), 43 bytes
function f($s){echo date(d,strtotime($s));}
The function receives as input a string like "second saturday of March 2019"
The function returns the day number.
PHP, (削除) 46 (削除ここまで), (削除) 43 (削除ここまで), 31 bytes
<?=date(d,strtotime($argv[1]));
The program receives as input a string like "second saturday of March 2019"
The program prints the day number.
-12 bytes thanks to Shaggy.
PHP, 46(削除) 46 (削除ここまで), 43 bytes
function f($s){returnecho date(d,strtotime($s));};
The function receives as input a string like "second saturday of March 2019"
The function returns the day number.
PHP, 46 bytes
function f($s){return date(d,strtotime($s));};
The function receives as input a string like "second saturday of March 2019"
The function returns the day number.
PHP, (削除) 46 (削除ここまで), 43 bytes
function f($s){echo date(d,strtotime($s));}
The function receives as input a string like "second saturday of March 2019"
The function returns the day number.
PHP, 46 bytes
function f($s){return date(d,strtotime($s));};
The function receives as input a string like "second saturday of March 2019"
The function returns the day number.
PHP, 46 bytes
function f($s){return date(d,strtotime($s));};
The function receives as input a string like "second saturday of March 2019"
PHP, 46 bytes
function f($s){return date(d,strtotime($s));};
The function receives as input a string like "second saturday of March 2019"
The function returns the day number.