slashmili/python-jalali — pull request #7 by yassersouri (2013-04-24 08:24:14+00:00)
Title: implementing __format__

Salam

This is really simple, we had a use case where we wanted to do string formatting:

```python
s = "{date:%d}"
s.format(**{'date':jdatetime.datetime.fromgregorian(datetime.datetime.now())})
```

for this to work, `__format__` method was needed.