RTC using PLC Languages

Hey i need RTC for logic in my opta wifi so can any one help me with solving this problem using PLC Languages without using sketch in plc ide.
Any example if shared can be helpful.

ThankYou