TeRanEX Wiki

 

Nucleus Plugin: NP_InternetTime

Current Version: 0.1.1
Download: internettime/
Demo: http://budts.be/weblog/
Forum Thread: http://forum.nucleuscms.org/viewtopic.php?p=14578

Using the plugin

This plugin brings the Swatch Internet Time (.beat) to http://nucleuscms.org Nucleus.
Swatch has divided a day into 1000 eqaul beats, so every beat is the equivalent of 86.4 seconds. Also there are no timezones, so wherever you are, it is always the same Internet Time (by example: while i’m writing this it is 12:28+0200 or @478)
more info about Swatch Internet Time at http://swatch.com/internettime/home.php

The plugin can be used as a TemplateVar to show the time at which an item or comment was posted in the Swatch Internet Time To do so simply add <%InternetTime%> somewhere in your template. (In the ‘Items’-part of your template if you want the .beat of your item and somewhere in the ‘Comments (if any)’-part of your template to show the .beat of every comment.)

The plugin can also be used as a SkinVar, to print the actual .beat time (this is the time the blogpage is parsed on the server)

Installation

To install NP_InternetTime simply copy the following code and save it in a file called NP_InternetTime.php, upload it to the plugins folder of your Nucleus installation and install.

Options

The plugin has only one option:

  • Show Centibeat (yes, no): with this option you can turn on or of the centibeats which make the .beat more precise (example: on: @494.25, off: @494)

Screenshot

Get the plugin

You can get the code of the plugin HERE

Bugs

Version History

  • 2004-04-19: v0.1: Initial Version
  • 2004-04-22: v0.1.1: added the function supportsfeature(’tableprefix’)

Idea's for future versions

  • phpDoc comments
 
Powered by DokuWiki · · internettime.txt · Last modified: 2005-11-23 15:00