-
Notifications
You must be signed in to change notification settings - Fork 6
/
PersianDate.3.5.nuspec
73 lines (64 loc) · 3.5 KB
/
PersianDate.3.5.nuspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
<metadata>
<id>PersianDate</id>
<version>3.5</version>
<title>Persian Date Convertor</title>
<authors>Iman Abidi</authors>
<owners>Iman Abidi</owners>
<projectUrl>https://github.com/imanabidi/PersianDate.NET</projectUrl>
<iconUrl>http://pimg.p30download.com/APK_IMG/a/tirgan.app.persian_date/icon/icon_3_small.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>
string persianSampleDateString1 = "1393/08/01 21:53:26";
DateTime datetime1 = persianSampleDateString1.ToEn();
datetime1.ToFa();//1393/08/01
datetime1.ToFa("d");//93/08/01
datetime1.ToFa("D");//پنج شنبه, 01 آبان 1393
datetime1.ToFa("g");//93/08/01 21:53
datetime1.ToFa("G");//93/08/01 21:53:26
datetime1.ToFa("f");//پنج شنبه, 01 آبان 1393 ساعت 21:53
datetime1.ToFa("F");//پنج شنبه, 01 آبان 1393 ساعت 21:53:26
datetime1.ToFa("M");//اول آبان
datetime1.ToFa("y");//1393 آبان
datetime1.ToFa("yy MMM");//93 آبان
datetime1.ToFa("yyyy/MM/dd ");//1393/08/01
datetime1.ToFa("yy-M-dd ");//93-8-01
datetime1.ToFa("ddd d MMM yyyy");//جمعه 1 آبان 1393
datetime1.ToFa("ddd D MMM yyyy");//جمعه اول آبان 1393
//default format
"1393/08/01 16:20".ToEn();//10/23/2014 4:20:00 PM
"01/8/1393".ToEn().ToShortDateString();//10/23/2014
"1/8/1393".ToEn().ToLongDateString();//Thursday, October 23, 2014
"1-8-93".ToEn().ToString("d");//10/23/2014
"93-8-01".ToEn().ToString("U");//Wednesday, October 22, 2014 8:30:00 PM
"93-8-01".ToEn().ToString("y");//October 2014
"93 8 01".ToEn().ToString("ddd d MMM yyyy");//Thu 23 Oct 2014
"1_8_1393 ".ToEn().ToString("g");//10/23/2014 12:00 AM
" 1_8_1393 16:20".ToEn().ToString("f");//Thursday, October 23, 2014 4:20 PM
" 1.8.1393 16:20:48".ToEn().ToString("R");//Thu, 23 Oct 2014 16:20:48 GMT
</description>
<summary>Convert System.Datetime to a string representing persian date like 1396/01/01 supporting many similar controllable standard date format (like MMM for آبان) and also smart reverse conversion from persi</summary>
<releaseNotes>- Adding extension mthods for Datetime and Datetime?
- Converting time in string back to georgian date</releaseNotes>
<language>en-US</language>
<tags>persian shamsi farsi date convert calendar jalali فارسی شمسی تقویم تاریخ تبدیل جلالی</tags>
<dependencies>
<group targetFramework=".NETFramework4.5" />
<group targetFramework=".NETFramework4.0" />
<group targetFramework=".NETFramework3.5" />
<group targetFramework=".NETFramework2.0" />
<group targetFramework=".NETPortable4.5-Profile259" />
<group targetFramework=".NETPortable4.0-Profile328" />
</dependencies>
<frameworkAssemblies>
<frameworkAssembly assemblyName="System" targetFramework=".NETFramework2.0" />
</frameworkAssemblies>
</metadata>
<files>
<file src="lib\net20\PersianDate.dll" target="lib\net20\PersianDate.dll" />
<file src="lib\net35\PersianDate.dll" target="lib\net35\PersianDate.dll" />
<file src="lib\netstandard1.3\PersianDate.Standard.dll" target="lib\netstandard1.3\PersianDate.Standard.dll" />
<file src="lib\PersianDate.README.md" target="lib\PersianDate.README.md" />
</files>
</package>