Go Back   FlashFXP Forums > > > >

! Requests Need a script or some sort of cool .bat file ? Ask here!

Reply
 
Thread Tools Rate Thread Display Modes
Old 08-09-2005, 04:25 PM   #1
eger
Member
FlashFXP Beta Tester
ioFTPD Foundation User
 
Join Date: Mar 2003
Posts: 40
Default Newdate with timeoffset

Wondering if anyone knows of a newdate script that has a time offset than can be used for different timezones to create newdates for the UTC date when the PST dat is still the previous day.

I've tried ioA and ioZS newdate and both only create yesterdays date or the current date. I am in PST timezone and want to create 08/10 date when it is 3pm 08/09.

Not sure which newdate supports this...

Any ideas?
eger is offline   Reply With Quote
Old 08-10-2005, 03:12 AM   #2
FTPServerTools
Senior Member
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: Sep 2002
Posts: 543
Default

NewDay.exe
Timeoffset can be set in hours or days. Also you can set previous and coming days chmod so for example close down yesterday for upload.
FTPServerTools is offline   Reply With Quote
Old 08-10-2005, 11:42 AM   #3
eger
Member
FlashFXP Beta Tester
ioFTPD Foundation User
 
Join Date: Mar 2003
Posts: 40
Default

Thanks FTPServerTools

I got yours to work the way I wanted. The only thing it misses is a !putlog for announcing. Then it would be the only NewDay script with timeoffset!

If anyone is interested I made this simple batch file to make !putlog for a single dir:

Code:
@ECHO OFF
CD c:\ioFTPD\scripts\NewDay\
date.exe -d tomorrow +%%m%%d > date.tmp
date.exe -d now +%%m%%d > yest.tmp

FOR /F %%a IN (date.tmp) DO (SET date=%%a)
FOR /F %%a IN (yest.tmp) DO (SET yest=%%a)

ECHO Todays Date: %date%
ECHO Yesterday: %yest%
NewDay.exe
ECHO !putlog NEWDATE: "/MP3/%date%" "A new Day has come!"
It requires date.exe from: http://unxutils.sourceforge.net/

Was the fastest way for me to get tomorrows date as a string for use in !putlog echo.
eger is offline   Reply With Quote
Old 08-10-2005, 05:03 PM   #4
FTPServerTools
Senior Member
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: Sep 2002
Posts: 543
Default

Well it was build for automation, just dump it somewhere in the scheduler and forget about it..
FTPServerTools is offline   Reply With Quote
Reply

Tags
create, current, date, newdate, pst

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 03:05 AM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)