Skip to content
pubscout

shamsi_date

1.1.1, released a year ago by an unverified publisher

A Dart and Flutter package for using, converting, and formatting Jalali and Gregorian calendars.

WASM-ready
$ flutter pub add shamsi_date
Source repository

What it does

Allows developers to work with both Jalali (Shamsi/Solar/Persian) and Gregorian (Miladi) calendars. It supports date conversions, formatting, manipulation, and time information.

AI-written summary of version 1.1.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to display or manipulate Jalali (Shamsi) calendar dates in a Flutter or Dart application.
  • You need to convert between Jalali, Gregorian, and standard DateTime objects.

Skip it when

  • You only need standard Gregorian dates and do not require Persian calendar support.

Strengths

  • Comprehensive support for Jalali calendar calculations and conversions.
  • Immutable date objects with robust validation and exception handling.
  • High test coverage and pure Dart implementation.

Weaknesses

  • Does not store timezone information internally within date objects.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
0

none

import 'package:shamsi_date/shamsi_date.dart';

Jalali j = Jalali(1397, 5, 6);
Gregorian g = j.toGregorian();

Alternatives

Packages that do the same job and could replace shamsi_date.

Works with

Packages commonly used together with shamsi_date: ones it builds on, ones built on it, and its own family.