Community Robot Questions Current Date And Time PRO dbeard USA Asked Aug 2015 — Edited Aug 2015 Resolved by Dunning-Kruger! 2 Participants Dunning-Kruger Herr Ball Current Date And Time ARC Skip to comments Jump to end When using scripts is there a way to get the current date and time from the PC clock? Thanks in advance. Quote Jump to end Upgrade to ARC Pro Unleash your robot's full potential with the cutting-edge features and intuitive programming offered by Synthiam ARC Pro. Compare Pro Features View Subscription Plans Dunning-Kruger Canada #1 Aug 2015 Absolutely.... Have you read down the script commands... You should check out all the available commands so you will be able to do this kind of easy stuff yourself... Below are reserved script variables that will get you what you want... $date $month $year $day $dayName $hour $minute $second $monthName $time Reply Quote Share Herr Ball PRO USA #2 Aug 2015 Here is the script that I use to tell the time. It is not my code, I believe it is from Rich but not sure. # ------| # Time | # ------| :Initialise $hour_word=$hour SayWait("According to my data calculations the time is ") IF ($hour>12) $hour_word=$hour-12 Elseif ($hour=0) $hour_word=0 #$hour_word=12 ENDIF $hour_word=$hour_word + ":" IF ($Minute=0) SayWait($hour) goto (AM_PM) ELSEIF ($minute<30) Say($minute + "minutes past " + $hour_word) ELSE SayWait($hour_word + $minute) goto(AM_PM) ENDIF :AM_PM IF ($hour<12) SayWait("a.m.") ELSE SayWait("p.m.") ENDIF halt() Reply Quote Share dbeard PRO USA #3 Aug 2015 awesome, thanks for everyones help. Reply Quote Share Login to post a comment
PRO dbeard USA Asked Aug 2015 — Edited Aug 2015 Resolved by Dunning-Kruger! 2 Participants Dunning-Kruger Herr Ball Current Date And Time ARC Skip to comments Jump to end When using scripts is there a way to get the current date and time from the PC clock? Thanks in advance. Quote Jump to end
Dunning-Kruger Canada #1 Aug 2015 Absolutely.... Have you read down the script commands... You should check out all the available commands so you will be able to do this kind of easy stuff yourself... Below are reserved script variables that will get you what you want... $date $month $year $day $dayName $hour $minute $second $monthName $time Reply Quote Share
Absolutely.... Have you read down the script commands... You should check out all the available commands so you will be able to do this kind of easy stuff yourself... Below are reserved script variables that will get you what you want... $date $month $year $day $dayName $hour $minute $second $monthName $time
Herr Ball PRO USA #2 Aug 2015 Here is the script that I use to tell the time. It is not my code, I believe it is from Rich but not sure. # ------| # Time | # ------| :Initialise $hour_word=$hour SayWait("According to my data calculations the time is ") IF ($hour>12) $hour_word=$hour-12 Elseif ($hour=0) $hour_word=0 #$hour_word=12 ENDIF $hour_word=$hour_word + ":" IF ($Minute=0) SayWait($hour) goto (AM_PM) ELSEIF ($minute<30) Say($minute + "minutes past " + $hour_word) ELSE SayWait($hour_word + $minute) goto(AM_PM) ENDIF :AM_PM IF ($hour<12) SayWait("a.m.") ELSE SayWait("p.m.") ENDIF halt() Reply Quote Share
Here is the script that I use to tell the time. It is not my code, I believe it is from Rich but not sure. # ------| # Time | # ------| :Initialise $hour_word=$hour SayWait("According to my data calculations the time is ") IF ($hour>12) $hour_word=$hour-12 Elseif ($hour=0) $hour_word=0 #$hour_word=12 ENDIF $hour_word=$hour_word + ":" IF ($Minute=0) SayWait($hour) goto (AM_PM) ELSEIF ($minute<30) Say($minute + "minutes past " + $hour_word) ELSE SayWait($hour_word + $minute) goto(AM_PM) ENDIF :AM_PM IF ($hour<12) SayWait("a.m.") ELSE SayWait("p.m.") ENDIF halt()
Absolutely.... Have you read down the script commands... You should check out all the available commands so you will be able to do this kind of easy stuff yourself... Below are reserved script variables that will get you what you want...
$date $month $year $day $dayName $hour $minute $second $monthName $time
Here is the script that I use to tell the time. It is not my code, I believe it is from Rich but not sure.
awesome, thanks for everyones help.