This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo "pre-commit started" | |
version=$(cat redmuffin.Blazor.Static/wwwroot/Version.txt); y=$((version=version+1)); echo $y > redmuffin.Blazor.Static/wwwroot/Version.txt | |
git add redmuffin.Blazor.Static/wwwroot/Version.txt | |
cat redmuffin.Blazor.Static/wwwroot/Version.txt | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class DateTimeExtensions | |
{ | |
private const int Today = 0; | |
private const int Yesterday = 1; | |
private const int Week = 7; | |
private const int Month = 31; | |
private const int OneMinute = 60; | |
private const int OneHour = 3600; | |
private const int OneDay = 86400; |