jben Posted May 1, 2008 Share Posted May 1, 2008 Hey everyone. Is it possible to use something like getfiletime to get the date of a file and then use weeknumberISO to get the week number based on the date of the file? thanks Link to comment Share on other sites More sharing options...
ProgAndy Posted May 1, 2008 Share Posted May 1, 2008 Do you have a help-File? FileGetTime() _WeekNumberISO( *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes Link to comment Share on other sites More sharing options...
monoceres Posted May 1, 2008 Share Posted May 1, 2008 (edited) Do you have a help-File?FileGetTime()_WeekNumberISO(If you looked in yours, you would have seen that they do not use the same time format Edited May 1, 2008 by monoceres Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
ProgAndy Posted May 1, 2008 Share Posted May 1, 2008 FileGetTime returns an Array: $array[0] = year (four digits) $array[1] = month (range 01 - 12) $array[2] = day (range 01 - 31) $array[3] = hour (range 00 - 23) $array[4] = min (range 00 - 59) $array[5] = sec (range 00 - 59) Then _WeekNumberISO($array[0] ,$array[1] ,$array[2] ) *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes Link to comment Share on other sites More sharing options...
Developers Jos Posted May 1, 2008 Developers Share Posted May 1, 2008 If you looked in yours, you would have seen that they do not use the same time format It is still possible though.Just use the returned Array values in as parameters in _WeekNumberISO(). SciTE4AutoIt3 Full installer Download page  - Beta files    Read before posting   How to post scriptsource   Forum etiquette Forum Rules  Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
monoceres Posted May 1, 2008 Share Posted May 1, 2008 (edited) It is still possible though.Just use the returned Array values in as parameters in _WeekNumberISO().I kow that Just felt like pointed it out since someone could get the idea that you could just plug FileGetTime into _WeekNumberIso()Edit: Ok I was very wrong, I thought that _WeekNumberIso() took data like _Now() returns. Edited May 1, 2008 by monoceres Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
Developers Jos Posted May 1, 2008 Developers Share Posted May 1, 2008 Edit: Ok I was very wrong, I thought that _WeekNumberIso() took data like _Now() returns.Aahhhhhh, who said "If you looked in yours...." ? (sorry, couldn't resist) SciTE4AutoIt3 Full installer Download page  - Beta files    Read before posting   How to post scriptsource   Forum etiquette Forum Rules  Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
monoceres Posted May 1, 2008 Share Posted May 1, 2008 Aahhhhhh, who said "If you looked in yours...." ? (sorry, couldn't resist)It's ok, I will have to take that for being so foolish Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
Developers Jos Posted May 1, 2008 Developers Share Posted May 1, 2008 It's ok, I will have to take that for being so foolish Nah... not really, making mistakes is human unless that all you do. SciTE4AutoIt3 Full installer Download page  - Beta files    Read before posting   How to post scriptsource   Forum etiquette Forum Rules  Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
jben Posted May 1, 2008 Author Share Posted May 1, 2008 I'm very confused now. Not sure what I can do to achieve this? Link to comment Share on other sites More sharing options...
monoceres Posted May 1, 2008 Share Posted May 1, 2008 I'm very confused now. Not sure what I can do to achieve this?Look at ProgAndys post, he had the right answer Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
ProgAndy Posted May 1, 2008 Share Posted May 1, 2008 Post 4: http://www.autoitscript.com/forum/index.ph...st&p=514772$array = FileGetTime_WeekNumberISO($array[0] ,$array[1] ,$array[2] ) *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now