Rotate a bone

Hello, I want to rotate a bone with Python, despite the fact that I have found the answer to the question, it does not work for me.

import bge
import time

def main():
	armature = bge.logic.getCurrentScene().objects['Armature']
	bone = armature.channels['Bone']
	bone.joint_rotation = [0, 0, time.time()]

Am I missing something?

Attachments (75 KB)