Section 51 of IPC 1860: Oath

Oath-Indian Penal Code
The word oath includes a solemn affirmation substituted by law for an oath, and any declaration required or authorized by law to be made before a public servant or to be used for the purpose of proof, whether in a Court of Justice or not.