Skip to content

Commit 89ae8db

Browse files
Update README.md
1 parent 3c000a8 commit 89ae8db

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

README.md

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
# [IntelliTect.Multitool](https://www.nuget.org/packages/IntelliTect.Multitool/): [![NuGet](https://img.shields.io/nuget/v/IntelliTect.Multitool.svg)](https://www.nuget.org/packages/IntelliTect.Multitool/)
22

3-
## Namespaces within this library
3+
## ReleaseDateAttribute - Gets an UTC DateTime of compile time. Allows us to determine the build date/time
44

5-
-------
5+
### Samples:
66

7-
### IntelliTect.Multitool
7+
- Assignment of GetReleaseDate() to a local variable
88

9-
* ReleaseDateAttribute: Gets an UTC DateTime from compile time. Allows us to determine the build date/time.
10-
* Example Usage:
11-
129
```cs
13-
// Simple assignment of GetReleaseDate() to a local variable
1410
DateTime? date = IntelliTect.Multitool.ReleaseDateAttribute.GetReleaseDate(); // Returns a datetime in UTC to date
1511
```
1612

13+
- Displaying GetReleaseDate() on a cshtml page
14+
1715
```cshtml
1816
// This example is in cshtml.
19-
@ReleaseDateAttribute.GetReleaseDate() // Returns a datetime in UTC
17+
@IntelliTect.Multitool.ReleaseDateAttribute.GetReleaseDate() // Returns a datetime in UTC
2018
```
2119

20+
- Converting and displaying GetReleaseDate() on a cshtml page
21+
2222
```cshtml
2323
// convert this UTC DateTime object into one for my local timezone that is formatted in a “d MMM, yyyy h:mm:ss tt” (ex: 8 Feb, 2023 11:36:31 AM).
2424
// The following code will format the date and convert it to my local time zone of Pacific Standard Time.
@@ -27,19 +27,22 @@
2727
@TimeZoneInfo.ConvertTimeFromUtc(date, TimeZoneInfo.FindSystemTimeZoneById("Pacific Standard Time")).ToString("d MMM, yyyy h:mm:ss tt", CultureInfo.InvariantCulture)
2828
}
2929
// Result is "Build: 8 Feb, 2023 11:36:31 AM"
30-
```
30+
```
31+
32+
## RepositoryPaths - Provides consistent environment-independent normalized pathing within a git repository
33+
34+
### Samples:
3135

32-
* RepositoryPaths: Provides consistent environment-independent normalized pathing within a repository.
33-
* Example Usage:
36+
- Get file path from the root of a repository
3437

3538
```csharp
3639
// In this case, the GetDefaultRepoRoot() method can be used to get the root of a repository.
3740
string fullPathToTheFile = Path.Combine(IntelliTect.Multitool.RepositoryPaths.GetDefaultRepoRoot(), "TheFile.txt");
3841
```
3942

40-
### IntelliTect.Multitool.Security
43+
## Security
4144

42-
* ClaimsPrincipalExtensions: Extention methods to get a user ID and roles.
45+
- ClaimsPrincipalExtensions: Extension methods to get a user ID and roles.
4346

4447
## Contributing
4548

0 commit comments

Comments
 (0)