75 liens privés
Unlock the full potential of your ASP.NET Core applications with our definitive guide to middleware-based exception handling. Learn how to gracefully manage errors, boost your application's resilience, and protect against downtime with practical, easy-to-follow strategies
<PackageReference Include="TimeZoneConverter" Version="6.1.0" />
<p id="test"></p>
@currentUtc => @currentLocal
<p>
<span class="date-local">
<div class="spinner-border" role="status">
<span class="visually-hidden">Loading...</span>
</div>
</span> (<span class="date-iso">@currentUtcIso</span> UTC)
</p>
<p>
<span class="date-local">
<div class="spinner-border" role="status">
<span class="visually-hidden">Loading...</span>
</div>
</span> (<span class="date-iso">@currentUtcIso</span> UTC)
</p>
<p>
<span class="date-local">
<div class="spinner-border" role="status">
<span class="visually-hidden">Loading...</span>
</div>
</span> (<span class="date-iso">@currentUtcIso</span> UTC)
</p>
<p>
<span class="date-local">
<div class="spinner-border" role="status">
<span class="visually-hidden">Loading...</span>
</div>
</span> (<span class="date-iso">@currentUtcIso</span> UTC)
</p>
<script>
var tz = Intl.DateTimeFormat().resolvedOptions().timeZone;
document.getElementById("test").innerHTML = tz;
var isos = document.getElementsByClassName("date-iso");
var locals = document.getElementsByClassName("date-local");
for (let i = 0; i < isos.length; i++) {
var fff = luxon.DateTime.fromISO(isos[i].innerHTML, { zone: tz });
locals[i].innerHTML = fff.toString();
}
</script>
@code {
public DateTime currentUtc { get; set; } = DateTime.UtcNow;
public string currentUtcIso { get; set; } = DateTime.UtcNow.ToString("o");
public DateTime currentLocal { get; set; }
protected override async Task OnInitializedAsync()
{
var tzFrance = TimeZoneConverter.TZConvert.IanaToWindows("Europe/Paris");
var tziFrance = TimeZoneInfo.FindSystemTimeZoneById(tzFrance);
currentLocal = TimeZoneInfo.ConvertTime(DateTime.UtcNow, tziFrance);
}
}
Ces guerres qui nous attendent (2030-2060) Poche – Grand livre, 8 février 2023
de La Red Team (Auteur)
La plateforme de référence pour écrire et découvrir les meilleures newsletters. Redonnons le pouvoir à l'écrit.
@((MarkupString)myMarkup)
@code {
string myMarkup = "<iframe width='560' height='315' src='https://www.youtube-nocookie.com/embed/E9ch_xsFYdg?si=rNJVz8VuYxN4-Qpl' title='YouTube video player' frameborder='0' allow='accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share' referrerpolicy='strict-origin-when-cross-origin' allowfullscreen></iframe>";
}
Stream Diam's - La Boulette (Peyruis Remix) by Peyruis on desktop and mobile. Play over 320 million tracks for free on SoundCloud.
24 comments
L2BEAT is an analytics and research website about Ethereum layer 2 scaling. Here you will find in depth comparison of major protocols live on Ethereum today.