Time_dateToEpoch

Discussion on projects that are created by users and posted on mikroElektronika website.
Post Reply
Author
Message
jerryd
Posts: 29
Joined: 22 Feb 2011 03:37

Time_dateToEpoch

#1 Post by jerryd » 11 Apr 2017 21:59

Micro forum,
MicroBasic Pro for Pic version 7.1.0.

I'm trying to use Time_dateToEpoch on a windows system but the time
structure is always empty. Does this only work on Unix systems?

Thanks for any replies.
Jerryd

User avatar
danilo.milovic
mikroElektronika team
Posts: 501
Joined: 05 Dec 2016 14:59

Re: Time_dateToEpoch

#2 Post by danilo.milovic » 12 Apr 2017 12:23

Hi,

can you send me whole project folder in .zip archive so I can try to reproduce the issue.

Regards,

Danilo

jerryd
Posts: 29
Joined: 22 Feb 2011 03:37

Re: Time_dateToEpoch

#3 Post by jerryd » 12 Apr 2017 18:50

danilo.milovic,
Thanks for the reply.

My program is just a few lines and is mostly copied from the help
list of "Miscellaneous Libraries > Time Library".
The device I specified is 16F88.

Here is the code.

program Time

' Declarations section
dim ts1 as TimeStruct
Epoch as longint

main:
' Main Program
epoch = Time_dateToEpoch(@ts1)
nop
end.

I run this in debug mode stopping on the "nop" and expand ts1 which
is always all zeros except wd which is 6.

Do you need more?

Jerryd

User avatar
danilo.milovic
mikroElektronika team
Posts: 501
Joined: 05 Dec 2016 14:59

Re: Time_dateToEpoch

#4 Post by danilo.milovic » 13 Apr 2017 11:35

Hi,

please send whole project folder not just the code.

Regards,

Danilo

jerryd
Posts: 29
Joined: 22 Feb 2011 03:37

Re: Time_dateToEpoch

#5 Post by jerryd » 13 Apr 2017 18:25

Danilo,
Here's my folder.
First time I did this so I hope it worked.

Jerryd

User avatar
danilo.milovic
mikroElektronika team
Posts: 501
Joined: 05 Dec 2016 14:59

Re: Time_dateToEpoch

#6 Post by danilo.milovic » 18 Apr 2017 08:30

Hi Jerryd,

unfortunately you didn't sent the file, under the space where you write the post you have options, choose file and add the file.

Regards,

Danilo

jerryd
Posts: 29
Joined: 22 Feb 2011 03:37

Re: Time_dateToEpoch

#7 Post by jerryd » 18 Apr 2017 18:24

I tried to attach my Time.mbppi but it wasn't allowed so here it is in a text version.

I must be doing something wrong because I browsed and selected a file and got a message that
it was being uploaded but now I don't see it attached here.

Maybe someone can tell me what I'm doing wrong?

User avatar
danilo.milovic
mikroElektronika team
Posts: 501
Joined: 05 Dec 2016 14:59

Re: Time_dateToEpoch

#8 Post by danilo.milovic » 19 Apr 2017 11:04

Hi,

you need to add whole project folder not just Time.mbppi in .zip archive, then you will be able to send the file.

Regards,

Danilo

jerryd
Posts: 29
Joined: 22 Feb 2011 03:37

Re: Time_dateToEpoch

#9 Post by jerryd » 19 Apr 2017 18:14

Just can't seem to attach a file or complete folder. I click on "browse" next to filename, navigate
to the folder and click Open which just opens the folder and shows all the files. I expected that
to put the time folder name next to "Browse" and then I could click on "Add the File". None of this
happens?

Still struggling.

Post Reply

Return to “User Projects”