Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Owo Sugiana
/
opensipkd-iso8583
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 73562ebe
authored
Oct 03, 2020
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Penyederhanaan rumus STAN
1 parent
7f6279df
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
11 deletions
CHANGES.txt
opensipkd/iso8583/network/doc.py
CHANGES.txt
View file @
73562eb
0.1.8 2020-10-02
----------------
- Penyederhanaan rumus StanGenerator
0.1.7 2020-09-24
----------------
- Bug fixed streamer pos (untuk PT POS) terkait Python 3
...
...
opensipkd/iso8583/network/doc.py
View file @
73562eb
from
datetime
import
(
datetime
,
date
,
)
from
random
import
randrange
from
datetime
import
datetime
from
ISO8583.ISOErrors
import
BitNotSet
from
opensipkd.string
import
(
DateTimeVar
,
...
...
@@ -19,18 +15,15 @@ from .structure import (
class
StanGenerator
:
def
__init__
(
self
):
self
.
tgl
=
None
self
.
reset
()
def
reset
(
self
):
self
.
seq
=
int
(
datetime
.
now
()
.
strftime
(
'
%
H
%
M
%
S'
))
def
create
(
self
):
kini
=
date
.
today
()
if
kini
==
self
.
tgl
:
self
.
seq
+=
randrange
(
1
,
100
)
else
:
self
.
tgl
=
kini
if
self
.
seq
==
999999
:
self
.
reset
()
self
.
seq
+=
1
return
str
(
self
.
seq
)
.
zfill
(
6
)
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment