Tags:
create new tag
, view all tags

Question

I create a wiki page per day. I want a navigation bar to help me move around. I've drafted the following pseudo code but can't work out how to make it real.

Can you help?

Thanks!

    • Set TODAY = 10 Nov 2008
    • Set TODAYEPOCH = 10 Nov 2008
    • Set DAILYEPOCHINCREMENT = 3600 * 24
    • Set THISWEEK = {TODAYEPOCH - DAILYEPOCHINCREMENT*4} {TODAYEPOCH - DAILYEPOCHINCREMENT*3} {TODAYEPOCH - DAILYEPOCHINCREMENT*2} {TODAYEPOCH - DAILYEPOCHINCREMENT*1} {TODAYEPOCH} {TODAYEPOCH + DAILYEPOCHINCREMENT*1} {TODAYEPOCH + DAILYEPOCHINCREMENT*2} {TODAYEPOCH + DAILYEPOCHINCREMENT*3} {TODAYEPOCH + DAILYEPOCHINCREMENT*4}

Should result in:

06Nov2008 07Nov2008 08Nov2008 09Nov2008 10Nov2008 11Nov2008 12Nov2008 13Nov2008

Environment

TWiki version: TWikiRelease04x02x01
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories: Documentation

-- TWikiGuest - 10 Nov 2008

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

Looks like a timeline. You may want to check EasyTimelinePlugin and TimelinePlugin.

-- EnriqueCadalso - 12 Nov 2008

It looks like you can achieve that with %CALC{}% of the pre-installed SpreadSheetPlugin. Look for $FORMATTIME(), $TIME(), $TIMEADD(), $TIMEDIFF(). Use mid-day to avoid rounding errors on summer savings time change.

-- PeterThoeny - 02 Jan 2009

 
Change status to:
Topic revision: r3 - 2009-01-02 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.