Web
Analytics
Log In  

10

Here's a simple one:

Cart [#45944#] | Copy | Code | 2017-11-06 | Link
10

use stat(x), where x is:

80..85  UTC time: year, month, day, hour, minute, second
90..95  Local time

Go crazy, guys!

clockjam
P#45923 2017-11-06 09:42 ( Edited 2018-10-12 16:49)

::

Sweet. Once there are some math functions for date/time, this will be awesome.

I might try to port some of my PHP time stuff over but might not be the same thing...hmmm...

You know, stuff like: days_diff(t,n), hours_diff(t,n), add_to_date()...

P#45925 2017-11-06 10:02

::

@ultrabrite: Are you hosting a full jam, or just want people to be aware of the new feature?

It could be interesting..

P#45926 2017-11-06 10:10

::

@enargy: Like a tweetjam, with less tweet and more clock! Deadline: The End of Time!

P#45927 2017-11-06 10:22

::

Ah, an open challenge.

I accept, good sir!

(eventually, at some point between now and the end of time)

P#45929 2017-11-06 10:51

::

@morningtoast, might be something useful in here: https://www.lexaloffle.com/bbs/?tid=29720

but I doubt it - I pretty much freestyle'd it instead of looking at any established algorithms such as PHP, as you suggested.

P#45930 2017-11-06 11:28

::

...and a failed tweetjam attempt:

Cart [#45937#] | Copy | Code | 2017-11-06 | Link
1

P#45932 2017-11-06 12:40 ( Edited 2017-11-06 13:10)

::

Here's a quick tweet-jam "bar clock" concept. From top to bottom it shows century (that is, 20xx), year (xx17), month, day, hour, minute, second.

Cart [#45953#] | Copy | Code | 2017-11-06 | Link
2

P#45952 2017-11-06 23:10 ( Edited 2017-11-06 23:17)

:: "24" style real-time clock

Cart [#45995#] | Copy | Code | 2017-11-08 | Link
2

At 163 chars, I was gonna say here's another failed #tweetcart attempt, but since Twitter just went crazy with tweet length... :D

#YesTheSoundIsAnnoying #TheresAReasonItsNotAThing

P#45996 2017-11-08 01:24 ( Edited 2017-11-08 01:24)

::

Cart [#46057#] | Copy | Code | 2017-11-09 | Link
3

(fixed hours)

Cart [#46001#] | Copy | Code | 2017-11-08 | Link
3

No one made a binary clock yet... So I will be the first ;P

P#46002 2017-11-08 04:52 ( Edited 2017-11-09 10:03)

::

Cart [#46012#] | Copy | Code | 2017-11-08 | Link
3

What happens when time values are converted to angles of a chain?

P#46013 2017-11-08 15:17

::

Cart [#46118#] | Copy | Code | 2017-11-10 | Link
4

P#46119 2017-11-10 20:07 ( Edited 2017-11-10 20:07)

::

Very nice 3 color clock, Ultrabrite!

P#46120 2017-11-10 20:32

::

Cart [#46128#] | Copy | Code | 2017-11-11 | Link
3

This clock is based on the code from an earlier cart, which was itself based on the code at https://maximecb.github.io/Turing-Drawings/. It converts the current time and date to a base-48 number, then creates a Turing machine transition entry for each "digit" in the number in order to draw the patterns you see (48 = 3 symbols * 4 states * 4 directions). There are only enough seconds since 1 AD to fill up the first 7 entries of 12 (the number of seconds is approximately 7 digits in base 48), so the last 5 entries are randomized instead. Every second it changes the rules based on the new current time, and every minute it clears the screen.

P#46129 2017-11-11 01:16 ( Edited 2017-11-11 01:19)

::

Cart [#46622#] | Copy | Code | 2017-11-23 | Link
2

Another one. Super fun to use.

P#46623 2017-11-23 09:38

::

more clocks!

Cart [#57860#] | Copy | Code | 2018-10-12 | Link
0

Cart [#57861#] | Copy | Code | 2018-10-12 | Link
0

Cart [#57862#] | Copy | Code | 2018-10-12 | Link
0

Cart [#57863#] | Copy | Code | 2018-10-12 | Link
0

Cart [#57931#] | Copy | Code | 2018-10-14 | Link
0

P#57864 2018-10-12 12:58 ( Edited 2018-10-14 10:18)

::

Actually that would be nice to have as part of reading time/date the name of the DAY it is without having to calculate it. Su/Mo/Tu/We/Th/Fr/Sa.

P#57873 2018-10-12 16:49

Log in to post a comment

user:
password:

New User | Account Help
:: New User
X
About | Contact | Updates | Terms of Use
Follow Lexaloffle:        
Generated 2018-10-23 11:49 | 0.186s | 1835k | Q:147