You would be considered an employee from your joining date and according to job offer date.
If you resigned before you are completing one month you are not eligible for encashment, in case the company terminate you before you are completing one year, you are eligible for encashment and this should be apply for gratuity as well.
For more details you can check with ministry of work which located near American hospital at c ring road.