Skip to content

Commit b21f105

Browse files
committed
added Timestamp destination
1 parent bb31f43 commit b21f105

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Timestamp.dropzone

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/ruby
2+
3+
# Dropzone Destination Info
4+
# Name: Timestamp
5+
# Description: Displays the current timestamp and copies it to the clipboard.
6+
# Events: Clicked
7+
# Creator: Tinu Cleatus
8+
# URL: http://blog.tinucleatus.com
9+
# IconURL: http://disk.tinucleatus.com/TM256.png
10+
11+
def clicked
12+
date = Time.now.to_i
13+
$dz.finish(date)
14+
$dz.url(date)
15+
end

0 commit comments

Comments
 (0)