Jump to content
Sign in to follow this  
jben

GetFiletime and weeknumberISO()

Recommended Posts

jben

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

Share this post


Link to post
Share on other sites
ProgAndy

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

Share this post


Link to post
Share on other sites
monoceres

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 by monoceres

Broken link? PM me and I'll send you the file!

Share this post


Link to post
Share on other sites
ProgAndy

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

Share this post


Link to post
Share on other sites
Jos

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 Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
monoceres

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 by monoceres

Broken link? PM me and I'll send you the file!

Share this post


Link to post
Share on other sites
Jos

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 Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
monoceres

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 :D

Broken link? PM me and I'll send you the file!

Share this post


Link to post
Share on other sites
jben

I'm very confused now. Not sure what I can do to achieve this?

Share this post


Link to post
Share on other sites
monoceres

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!

Share this post


Link to post
Share on other sites
ProgAndy

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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×