Legal analysis: Different companies have different systems. Generally speaking, as long as you don't punch in during normal attendance hours, you are late and leave early, and being late for more than half an hour is a half-day absenteeism.
Legal basis: Article 3 of the Labor Contract Law of People's Republic of China (PRC) shall follow the principles of legality, fairness, equality, voluntariness, consensus, honesty and credibility when concluding a labor contract. The labor contract concluded according to law is binding, and the employer and the employee shall perform the obligations stipulated in the labor contract.