format("G");
}
// Returns true if current time is between available from and to hours
public function is_available(): bool {
return $this->get_hour() >= self::AVAILABLE_FROM_HOUR && $this->get_hour() < self::AVAILABLE_TO_HOUR;
}
public function get_estimated_reply_hours(): int {
// I'm available! Return the estimated reply time for that
if ($this->is_available()) {
return self::REPLY_TIME_HOURS_AVAILABLE;
}
$hour = $this->get_hour();
return $hour < self::AVAILABLE_FROM_HOUR
// Return hours past midnight until I become available (clamped to estimated reply hours)
? max(self::AVAILABLE_FROM_HOUR - $hour, self::REPLY_TIME_HOURS_AVAILABLE)
// Return hours before midnight until I become available (clamped to estimated reply hours)
: max(self::AVAILABLE_FROM_HOUR + (24 - $hour), self::REPLY_TIME_HOURS_AVAILABLE);
}
}
$date = new Date();
?>
Let's chat!
The best way to get in touch is definitely by email, or through the form on this page. The time in Sweden is = $date->format("h:i a") ?> right now, I am currently = $date->is_available() ? "available" : "not available" ?> and will hopefully reply in about = $date->get_estimated_reply_hours() ?> hours.
= VV::embed("public/assets/media/line.svg") ?>
= VV::embed("public/assets/media/icons/pin.svg") ?>
encrypt your message with PGP
Please consider encrypting your message with my PGP key, even if your message doesn't contain anything sensitive. The key is also available via WKD, and is listed on the openPGP key server for victor@vlw.se.
Fingerprint for victor@vlw.se
DCE987311CB5D2A252F58951D0AD730E1057DFC6
Fingerprint for info@vlw.se
For reference only, please don't send personal emails to this address
DC603DA049903D707B7F1DB39AF727FB576F5A00
= VV::embed("public/assets/media/line.svg") ?>
call(Endpoints::MESSAGES->value)->post([
MessagesModel::EMAIL->value => $_POST[MessagesModel::EMAIL->value],
MessagesModel::MESSAGE->value => $_POST[MessagesModel::MESSAGE->value]
]);
?>
ok): ?>