Jump to content
Sign in to follow this  
JoeCool

Is it possible to find 3.1.1.15 somewhere ?

Recommended Posts

I would pm it to you but i'm about out of attachment space.

<{POST_SNAPBACK}>

You will be able to reclaim your space in 10 minutes ;-)

Share this post


Link to post
Share on other sites

See attached :)

Do you think the latest version has a bug that's preventing your script from working?

<{POST_SNAPBACK}>

Thanks !

Yes my script were working fine just before updating to 3.1.1.16 it crash in Date.au3 now ...

Im going to investigate that in few minutes :-)

Edited by JoeCool

Share this post


Link to post
Share on other sites

from running the _DateAdd/_DateDiff examples

C:\Program Files\AutoIt3\Include\Date.au3 (727) : ==> Array variable has incorrect number of subscripts or subscript dimension range exceeded.: 
If StringLen($sDateTime[2]) < 8 Then $sDateTime[2] = $sDateTime[2] & ":00" 
If StringLen(^ ERROR

Also _DateDaysInMonth reports back 0 days in this month

Edited by gafrost

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

So instead of uploading a 1.37 MB attachment, I just needed to post Date.au3 :)

On a serious note, there have been some date issues...

http://www.autoitscript.com/forum/index.php?showtopic=10845

What's your AutoIt code?

Edited by CyberSlug

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post


Link to post
Share on other sites

So instead of uploading a 1.37 MB attachment, I just needed to post Date.au3  :)

On a serious note, there have been some date issues...

http://www.autoitscript.com/forum/index.php?showtopic=10845

What's your AutoIt code?

<{POST_SNAPBACK}>

lol don't bang your head ;-) I prefer to do a complete rollback to .15 ;-)

Well it's work fine with that version and it seems that is the same problem that you point to me ...

My script is a task and script scheduler who is running fine now under .15 :-)

Edited by JoeCool

Share this post


Link to post
Share on other sites

please use 3.1.1.16 and just update the date.au3 in the include dir with the one i upload with is the one of 3.1.1.15. dont forget to change the name.

Thanks for your cooperation

Share this post


Link to post
Share on other sites

it appears the problem stems from line 274, it's passing in a year only for 1st param, the _DateToDayValue function is trying to stringsplit that and it's failing

<{POST_SNAPBACK}>

can you send to JdeB and me the correction so I can merge it in 3.1.1.17

Thanks

Share this post


Link to post
Share on other sites

from running the _DateAdd/_DateDiff examples

C:\Program Files\AutoIt3\Include\Date.au3 (727) : ==> Array variable has incorrect number of subscripts or subscript dimension range exceeded.: 
If StringLen($sDateTime[2]) < 8 Then $sDateTime[2] = $sDateTime[2] & ":00" 
If StringLen(^ ERROR

Also _DateDaysInMonth reports back 0 days in this month

<{POST_SNAPBACK}>

Just oploaded a Fix for the reported issues Date.au3.

The _DateDaysInMonth example has the Month and Year swapped .. Will change the example.

@JoeCool,Could you try this version to see if it solves your problems?


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.
  :)

Share this post


Link to post
Share on other sites

the first 2 calls from the 1st example return 0

; Add 5 days to today
$sNewDate = _DateAdd( 'd',5, _NowDate())
MsgBox( 4096, "", "Today + 5 days:" & $sNewDate )

; Subtract 2 weeks from today
$sNewDate = _DateAdd( 'w',-2, _NowDate())
MsgBox( 4096, "", "Today minus 2 weeks: " & $sNewDate )

I swapped month and year in the _DateDaysInMonth example and it worked fine.


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

the first 2 calls from the 1st example return 0

; Add 5 days to today
$sNewDate = _DateAdd( 'd',5, _NowDate())
MsgBox( 4096, "", "Today + 5 days:" & $sNewDate )

; Subtract 2 weeks from today
$sNewDate = _DateAdd( 'w',-2, _NowDate())
MsgBox( 4096, "", "Today minus 2 weeks: " & $sNewDate )

I swapped month and year in the _DateDaysInMonth example and it worked fine.

<{POST_SNAPBACK}>

This is what the example looks like for _DateAdd (Notice the difference in red) in the helpfile:

; Add 5 days to today

$sNewDate = _DateAdd( 'd',5, _NowCalcDate())

MsgBox( 4096, "", "Today + 5 days:" & $sNewDate )

; Subtract 2 weeks from today

$sNewDate = _DateAdd( 'w',-2, _NowCalcDate())

MsgBox( 4096, "", "Today minus 2 weeks: " & $sNewDate )

; Add 15 minutes to current time

$sNewDate = _DateAdd( 'n',15, _NowCalc())

MsgBox( 4096, "", "Current time +15 minutes: " & $sNewDate )

; Calculated eventlogdate which returns second since 1970/01/01 00:00:00

$sNewDate = _DateAdd( 's',1087497645, "1970/01/01 00:00:00")

MsgBox( 4096, "", "Date: " & $sNewDate )

Or do you mean other examples ?

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.
  :)

Share this post


Link to post
Share on other sites

is this library working with any window setting as mine date in french dd/mm/yyyy?

Share this post


Link to post
Share on other sites

is this library working with any window setting as mine date in french dd/mm/yyyy?

<{POST_SNAPBACK}>

_DateTimeFormat() is the only function using the Pc's local settings for formatting the output.

All other functions have a fixed format for date/time. "YYYY/MM/DD[ HH:MM:SS]"

Edited by JdeB

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.
  :)

Share this post


Link to post
Share on other sites

_DateTimeFormat() is the only function using the Pc's local settings for formatting the output.

All other functions have a fixed format for date/time. "YYYY/MM/DD[ HH:MM:SS]"

<{POST_SNAPBACK}>

so the example is not working. But is the correction OK?

I wait an confirmation where to find it to include it in 3.1.1.17

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...