Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Jangal/Dilami-Calendar-.Net
.Net class to work with Dilami date and calendar
https://github.com/Jangal/Dilami-Calendar-.Net
calendar caspian date daylami deylami dilami gilaki gilan iran jalali
Last synced: about 2 months ago
JSON representation
.Net class to work with Dilami date and calendar
- Host: GitHub
- URL: https://github.com/Jangal/Dilami-Calendar-.Net
- Owner: Jangal
- License: gpl-3.0
- Created: 2020-08-20T12:34:08.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-04-01T04:49:34.000Z (almost 4 years ago)
- Last Synced: 2024-08-03T18:21:05.147Z (5 months ago)
- Topics: calendar, caspian, date, daylami, deylami, dilami, gilaki, gilan, iran, jalali
- Language: C#
- Homepage: http://giltime.ir
- Size: 31.3 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# .Net Dilami Calendar
## Install
Just download and open it with Microsoft Visual Studio. You can use it with C# or Visual Basic.
## C# Example
```c#
using Dilami_Calendar_.Net;
using System;namespace C_Sharp_Example
{
class Program
{
static void Main(string[] args)
{
DilamiCalendar dc = new DilamiCalendar(1398, 12, 2);Console.Write("Dilami Day: ");
Console.WriteLine(dc.getDilamiDay());
Console.Write("Dilami Month: ");
Console.WriteLine(dc.getDilamiMonth());
Console.Write("Dilami Year: ");
Console.WriteLine(dc.getDilamiYear());Console.WriteLine();
Console.WriteLine("IS " + dc.getDilamiYear() + " leap year? ");
if (dc.isLeap())
{
Console.WriteLine("Yes!");
}
else
{
Console.WriteLine("No!");
}Console.WriteLine();
Console.Write("Jalali Day: ");
Console.WriteLine(dc.getJalaliDay());
Console.Write("Jalali Month: ");
Console.WriteLine(dc.getJalaliMonth());
Console.Write("Jalali Year: ");
Console.WriteLine(dc.getJalaliYear());Console.ReadLine();
}
}
}```
## Visual Basic Example
```visual basic
Imports Dilami_Calendar_.NetModule Program
Sub Main(args As String())
Dim dc As New DilamiCalendar(1398, 12, 2)Console.Write("Dilami Day: ")
Console.WriteLine(dc.getDilamiDay())
Console.Write("Dilami Month: ")
Console.WriteLine(dc.getDilamiMonth())
Console.Write("Dilami Year: ")
Console.WriteLine(dc.getDilamiYear())Console.WriteLine()
Console.WriteLine("IS " + Str(dc.getDilamiYear()) + " leap year? ")
If dc.isLeap() = True ThenConsole.WriteLine("Yes!")
Else
Console.WriteLine("No!")
End IfConsole.WriteLine()
Console.Write("Jalali Day: ")
Console.WriteLine(dc.getJalaliDay())
Console.Write("Jalali Month: ")
Console.WriteLine(dc.getJalaliMonth())
Console.Write("Jalali Year: ")
Console.WriteLine(dc.getJalaliYear())Console.ReadLine()
End Sub
End Module```
## Maybe You Like
[Python Dilami Calendar](https://github.com/Jangal/python-dilami-calendar)
[C++ Dilami Calendar](https://github.com/Jangal/Dilami-Calendar-C-)
[PHP Dilami Calendar](https://github.com/Jangal/php-dilami-calendar)
[Arduino Dilami Calendar](https://github.com/LordArma/Dilami-Calendar-Arduino)
[تقویم دیلمی](http://giltime.ir)