Jump to content

GetFiletime and weeknumberISO()


Recommended Posts

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

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

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!

Link to comment
Share on other sites

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

  • Developers

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

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!

Link to comment
Share on other sites

  • Developers

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

  • Developers

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

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...