Date time library using c