Skip to content

how use the JS undefined with Brython #2496

Discussion options

You must be logged in to vote

Thank @denis-migdal ,

with your clues, I've managed to make it works :)

import javascript

print( window.Date.new().toLocaleTimeString(javascript.UNDEFINED,{'hour12':False,'hour':'2-digit','minute':'2-digit'}) )
#output: 22:24 for example :)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@BobSquarePants
Comment options

Answer selected by BobSquarePants
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants