B4i Library iDatePersian - The easy way to convert Date Gregorian to Persian

TopPersian.png


This library was made based on Gregorian and Persian dates styles

Installation instructions:

- Copy the *.a and *.h files into the folder "Libs" in your MAC or in your MAC HOSTED by AnywhereSoftware, normally in "B4i-MacServer\Libs" folder
-Copy the DatePersian.xml to your custom libraries folder in B4i
- Select in your REFERENCED LIBRARIES

RefPersian.png


Version history:
V1.0.0 (First public release - Freeware):
- Initial version

DatePersian
Author:
Alberto Iglesias ([email protected])
Version: 1.0.0
  • DatePersian
    Events:
    • onInitialized (EventName As String)
    Methods:
    • Initialize (EventName As String)
      Initializes the object.
    • ToPersian(Year As Int, Month As Int, Day As Int, Separator As String) As String
      Convert to date Persian
    • ToPersianToday (Separator As String) As String
      Convert to date Persian from today
    Properties:
    • Author As String [read only]
      Author of this Library
    • DebugMode As BOOL
      Enable/Disable Debug mode from Library
    • Version As String [read only]
      Library Version

* The version 1.0.0 is fully functional
Please consider a simple €10 donation.

Your contribution ensures that our work will thrive and so we will to innovate more and more.
Thanks in advance for your support!



 

Attachments

  • Library.zip
    51.7 KB · Views: 101
  • Example.zip
    1,010 bytes · Views: 66
  • DatePersianSourceCode.zip
    2.7 KB · Views: 66
Last edited:

BerlinCoder

Member
Licensed User
Hi,
I try to use this library for a project. But, during compiling I face with following error:
B4X:
B4iProject.build/Release-iphonesimulator/B4iProject.build/Objects-normal/i386/Persian_dependency_info.dat -o /Users/.../Desktop/B4iBuildServer/UploadedProjects/<user id>/Payload/Persian.app/Persian
ld: warning: ignoring file ../../Libs/libDatePersian.a, missing required architecture i386 in file ../../Libs/libDatePersian.a (2 slices)
Undefined symbols for architecture i386:
  "_OBJC_CLASS_$_B4IDatePersian", referenced from:
      objc-class-ref in b4i_main.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)


Error: ** BUILD FAILED **


The following build commands failed:
    Ld Payload/Persian.app/Persian normal i386
(1 failure)
 

BerlinCoder

Member
Licensed User
Thank you for the file. But, after replacing the library and refreshing the updated one, I see the error again!
B4X:
ld: warning: ignoring file ../../Libs/libDatePersian.a, missing required architecture i386 in file ../../Libs/libDatePersian.a (2 slices)
Undefined symbols for architecture i386:
  "_OBJC_CLASS_$_B4IDatePersian", referenced from:
      objc-class-ref in b4i_main.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)


Error: ** BUILD FAILED **


The following build commands failed:
    Ld Payload/Persian.app/Persian normal i386
(1 failure)

I use b4i 3.5 and b4ibuildserver 3.5, Build server version: 3.5 and Mac OS Sierra 10.12.2
 
Top