set age in minutes
This commit is contained in:
parent
b51d0389d3
commit
3172fd9da7
@ -1,11 +1,13 @@
|
|||||||
@model WeatherSet
|
@model WeatherSet
|
||||||
@{
|
@{
|
||||||
ViewData["Title"] = "Home Page";
|
ViewData["Title"] = "Home Page";
|
||||||
|
|
||||||
|
var updateAge = (DateTime.Now - Model.Current.LastUpdated.Value).Minutes;
|
||||||
}
|
}
|
||||||
|
|
||||||
<div class="location">
|
<div class="location">
|
||||||
@*<div>@Model.Location.Name, @Model.Location.Region</div>*@
|
@*<div>@Model.Location.Name, @Model.Location.Region</div>*@
|
||||||
<small>Last updated on @Model.Current.LastUpdated</small>
|
<small>Last updated @updateAge minutes ago</small>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="current-conditions">
|
<div class="current-conditions">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user