- Posts: 19
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
How to test if current unix timestamp is less than specified timestamp
- Qsgt
- Topic Author
- Offline
- New Member
Less
More
9 years 8 months ago #110790
by Qsgt
How to test if current unix timestamp is less than specified timestamp was created by Qsgt
Hi,
I have a survey in which I need to test to see if the current time stamp is greater than a specified timestamp I am using this code
How ever I keep getting unsupported syntax erors. Does anyone know why?
I have a survey in which I need to test to see if the current time stamp is greater than a specified timestamp I am using this code
Code:
The time is {gmdate("l jS \of F Y")} this means that the {if(time()<1414713600,'early',if(time()<1414800000,'standard','late')}rate will apply to this registration. this registration must be completed in the next {if(time()<1414713600,time()-1414713600,if(time()<1414800000,time()-1414800000,time()-1419638400)}secounds in order to still be eleagable for this rate
How ever I keep getting unsupported syntax erors. Does anyone know why?
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13907
- Thank you received: 2546
9 years 8 months ago #110795
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic How to test if current unix timestamp is less than specified timestamp
Can you show the Expression Manager screen please ?
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
- Qsgt
- Topic Author
- Offline
- New Member
Less
More
- Posts: 19
- Thank you received: 0
9 years 8 months ago #110801
by Qsgt
Replied by Qsgt on topic How to test if current unix timestamp is less than specified timestamp
Attachments:
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13907
- Thank you received: 2546
9 years 8 months ago #110802
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic How to test if current unix timestamp is less than specified timestamp
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: Qsgt
The topic has been locked.
- Qsgt
- Topic Author
- Offline
- New Member
Less
More
- Posts: 19
- Thank you received: 0
9 years 8 months ago #110861
by Qsgt
Replied by Qsgt on topic How to test if current unix timestamp is less than specified timestamp
Thanks a lot it works perfectly now!
qsgt
qsgt
The topic has been locked.