visual script and i don't know for anything about OS: get_time () get hour, minute and second.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Emily20

hello everyone I’m stuck :slight_smile: I’m making a clock like this https://www.youtube.com/watch?v=phQSAuUoB9k but i use visual script and i don’t know for anything about OS: get_time () get hour, minute and second.

:bust_in_silhouette: Reply From: godot_dev_

If OS.get_time is anything like OS.get_datetime_from_unix_time, here is how to use it to get a timestamp string in year/month/day - HH:mm:ss format:

var timeMap = OS.get_time()
var timeStamp = str(timeMap["year"])+"/"+str(timeMap["month"])+"/"+str(timeMap["day"])+" - "+str(timeMap["hour"])+":"+str(timeMap["minute"])+":"+str(timeMap["second"])

:bust_in_silhouette: Reply From: Emily20

someone here can not read with understanding I wrote that I use visual script and I want to extract hour, minute and second from the OS

:bust_in_silhouette: Reply From: Emily20

Can anyone help me